D
D
Destell2018-11-23 12:23:19
css
Destell, 2018-11-23 12:23:19

Why is there a difference in css animation when running on the webpack dev server and locally?

Example
The most banal, it would seem, animation when loading the page / getting blocks into the viewport.
The block is shifted via transform: translate(-100px), without further action - and remains in this state. as soon as the site loads.
However, on the dev server, the page is loaded first, then the animation of the transform block: translate (-100px);
What's the matter?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
profesor08, 2018-11-23
@Destell

The fact is that in the dev environment, the page is first rendered, then, through js, the styles are loaded. Delete the transition, then add another class to js, ​​where the transition will be specified.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question