CSS Curve Up animation effect

CSS Curve Up animation

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

<style> .curve-up { /* Uncomment as needed. */ /* width: 100px; */ /* height: 100px; */ /* background-color: deeppink; */ animation-name: curve-up; animation-duration: 2s; animation-iteration-count: infinite; } @keyframes curve-up { 0% { transform: scale(1,1) translate(0%, 50%); } 5% { transform: scale(0.8, 0.8) translate(60%, 0); } 50% { transform: scale(0, 0) translate(100%, -150%); } 100% { transform: scale(1, 1) translate(0%, 50%); } } </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