简体   繁体   中英

AtomicCSS - How to make a fade-in animation?

I am using the AtomicCSS framework from acss.io, so far so good.

However, I am stuck with creating animations. The reference page is silent about it and the examples page does not deliver any examples.

https://acss.io/reference.html

https://acss.io/guides/syntax.html#examples-

Let this be a starting point of my animation and show what I am looking for(fade in):

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translate3d(0, -20%, 0);
      }
      to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
      }
    }

try this

 @keyframes fadeIn { from { opacity: 0; transform: translate3d(0, -20%, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } } 
 <div class="Animn(fadeIn)"></div> 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM