๐ŸŒ AIๆœ็ดข & ไปฃ็† ไธป้กต
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions public/data/css.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,35 @@
],
"tags": ["css", "hover", "glow", "effects"],
"author": "dostonnabotov"
},
{
"title": "Hover to Reveal Color",
"description": "A card with an image that transitions from grayscale to full color on hover.",
"code": [
".card {",
" height: 300px;",
" width: 200px;",
" border-radius: 5px;",
" overflow: hidden;",
"}",
"",
".card img{",
" height: 100%;",
" width: 100%;",
" object-fit: cover;",
" filter: grayscale(100%);",
" transition: all 0.3s;",
" transition-duration: 200ms;",
" cursor: pointer;",
"}",
"",
".card:hover img {",
" filter: grayscale(0%);",
" scale: 1.05;",
"} "
],
"tags": ["css", "hover", "image", "effects"],
"author": "Haider-Mukhtar"
}
]
}
Expand Down