Skip to content

How to play a animation with js after glam ready? #65

@yeso

Description

@yeso

.play{
animation-duration:.8s;
animation-name:jump;
animation-iteration-count:infinite;
animation-timing-function:ease-in-out;
}
@Keyframes jump {
0% { transform:translateY(0); }
50% { transform:translateY(0.3); }
100%{ transform:translateY(0); }
}

obj.addEventListener('viewover', function(e) {
e.target.className = 'play';
});

///////////////////
it do not work~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions