Jump to content
Search Community

TimelineMax() with external css animation code

Maciek Lubocki test
Moderator Tag

Recommended Posts

Hello,

I have probably question which is very simple to anwer but still as a beginner this is for me a huge problem to solve.

I need to use TimelineMax() on my site to trigger multiple divs and make them life. Unfortunatelly for this, it is very very important

to have animation in css file. Below is standard code which works just fine.

 

var animateIn = new TimelineMax();
 
            animateIn
                .from(".blur_a"1, {
                    y: 250,
                    delay: 0,
                })

 

But the question is how to make work this below....

 

.from(".blur_b"1, {
                 classname: "ani_a"
 
            })

 

and in css:

 

 
.ani_a {
    opacity0.2;
 
}

 

or

.ani_a {
    animation: image_blur 1s linear
 
}

 

unfortunatelly neither of the work.

 

is it possible to make the class run on trigger on animation included in css file?

 

thank you for all suggestions.

Maciek

 

 

 

 

 

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...