K
K
kentos2018-08-24 11:04:15
css
kentos, 2018-08-24 11:04:15

How to animate like this svg?

Hello, how to make this animation? When scrolling, an arrow appears in the footer
Maybe someone can take it out of the site, I tried, it didn’t work out for me (
Tyk

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Andreichenko, 2018-08-24
@MB116

Done via GSAP, below is an excerpt from the script:

The code
this.timeline   = new TimelineMax({ paused: true });

        this.timeline.fromTo('.blurp--bottom', .6, {
            y:          40,
            scale:      0.5
        }, {
            y:          0,
            scale:      1,
            ease:       Power3.easeOut,
            force3D:    true

        });

        this.timeline.fromTo($('.btn__arrow--top'), .4, {
            y: 15,
            opacity: 0
        }, {
            y: 0,
            scale: 1,
            opacity: 1,
            ease: Back.easeOut
        }, '-=0.1');

        this.timeline.fromTo($('.btn__arrow--bottom'),.4, {
            y: 15,
            opacity: 0
        }, {
            y: 0,
            scale: 1,
            opacity: 1,
            ease: Back.easeOut
        }, '-=0.25');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question