G
G
Galdar Turin2020-03-02 11:25:38
Angular
Galdar Turin, 2020-03-02 11:25:38

How to set up keyframes in animations?

I want to loop the animation, but I can’t figure out how, I recently started learning angular

trigger( 'newDialog', [
        // void => *
        transition( ':enter', [
            animate( '', keyframes([
                style({  bottom: '0px', boxShadow: '0 0 5px rgba(0,0,0,0.5)', offset: 0 }),
                style({  bottom: '20px', boxShadow: '0 20px 20px rgba(0,0,0,0.1)', offset: 1 })
            ]))
        ])
    ])

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question