DEV Community 👩‍💻👨‍💻

Cover image for CSS animations - Zoom image
Chris Texe
Chris Texe

Posted on

CSS animations - Zoom image

I am sure you saw many times on some website image with this kind of animation:

Zoom image with CSS

The CSS code for this effect can not be very difficult:

.ct-animate-zoom {
    animation: zoom_image;

@keyframes zoom_image {
    from {
        transform: scale(0)

    to {
        transform: scale(1)
Enter fullscreen mode Exit fullscreen mode

We defined animation and we scale from 0 to 1 our image. Simple, isn't it?

It would be great if you will comment or follow me on social media:

Chris Texe Twitter

Chris Texe LinkedIn

Also you can visit my websites:

Top comments (0)

🌚 Life is too short to browse without dark mode