CSS Curve Down animation effect

CSS Curve Down animation

Propel an HTML element in a curve down motion into Z-direction using CSS tranform functions transform#scale and transform#translate. Similar to curve-up.

<style> .curve-down { /* Uncomment as needed. */ /* width: 100px; */ /* height: 100px; */ /* background-color: deeppink; */ animation-name: curve-down; animation-duration: 2s; animation-iteration-count: infinite; } @keyframes curve-down { 0% { transform: scale(1,1) translate(0%, 0%); } 5% { transform: scale(0.5, 0.5) translate(60%, 50%); } 50% { transform: scale(0, 0) translate(250%, 250%); } 100% { transform: scale(1, 1) translate(0%, 0%); } } </style>
    Hints:
  • If you cannot see your HTML element when using our code, you may need to set a width and or height, or background on your target HTML element using CSS. Just uncomment the CSS properties in our code as needed.
  • Remove the HTML style tag as needed.
  • Change values in the code such as animation-duration as needed.
Animation effects source code licenced under MIT Licence