Skip to content

Commit f2388d2

Browse files
Merge pull request #1198 from luighis/feat-1168/unify-hover-animation
feat: add hover styles to cards
2 parents 437b350 + c5bcfc0 commit f2388d2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

components/discover/defiOpportunityCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export default function DefiOpportunityCardComponent({
3737
onClick,
3838
}: PoolCardProps) {
3939
return (
40-
<div onClick={onClick} className="w-full bg-[#1F1F25] hover:bg-white/40 transition-colors py-4 rounded-lg mt-6 lg:mt-0 _border _box-shadow modified-cursor-pointer">
40+
<div onClick={onClick} className="transition-all duration-300 ease-in-out hover:transform hover:-translate-y-1 hover:bg-[var(--hover-background-color)] hover:shadow-lg hover:shadow-[#ffffff0d] w-full bg-[#1F1F25] py-4 rounded-lg mt-6 lg:mt-0 _border _box-shadow modified-cursor-pointer">
4141
<div className="w-full flex justify-between items-start mb-2 relative px-4">
4242
<div>
4343
<h2 className="text-[18px] md:text-[14px] xl:text-[24px] font-[700] text-white mb-1">

0 commit comments

Comments
 (0)