Advanced Image Animation With HTML & CSS in 2022 with full source code | jishaansinghal



 HTML:

<img class="anim" src="Penguins.jpg" alt="img">

CSS:

body{

margin: 0;

padding: 0;

height: 100vh;

width: 100%;

overflow: hidden;

}

.anim{

animation: anim 5s ease-out both;

}


@keyframes anim {

0%{

transform: scale(1.0) translateY(0);

transform-origin: 100% 100%;

}

100%{

transform: scale(1.3) translateY(-20px);

transform-origin: top;

}


}

Comments

Popular posts from this blog

how to add a button as a circle button on the Squarespace by jishaansinghal

How to add Follow the cursor GSAP animation on your squarespace 7.0,7.1 website with full source code in 2022 by jishaansinghal

How to add Vector Scrolling GSAP animation Effects on your Squarespace Website in 2022 with full source code by jishaansinghal