Contact Form

Name

Email *

Message *

Cari Blog Ini

Css Animation Png

WEB: How to Add a Background Image with Animate.css

Introduction

Animate.css is a popular CSS library that provides a wide range of pre-built animations. These animations can be easily added to your website or blog to create dynamic and eye-catching effects. In this tutorial, we will show you how to add a background image to an element using Animate.css.

Steps

To add a background image to an element using Animate.css, follow these steps:

  1. Include the Animate.css library in your HTML document.
  2. Add the following CSS code to your stylesheet:

    ``` .my-classname { background-image: url(path/to/image.jpg); animation: mymove 5s 2; } @keyframes mymove { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } } ```
  3. Add the "my-classname" class to the element you want to animate.

That's it! The element will now have a background image that will move from left to right when the animation is triggered.


Comments