D
D
Danila Kudashov2020-03-15 16:08:29
css
Danila Kudashov, 2020-03-15 16:08:29

How to use wow.js for different media queries?

You need to change the animation for the mobile version.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Arseny, 2020-03-15
@DanilaKud

Catch the size of the viewport and, depending on the size, run certain conditions that the library provides you. It's as simple as media queries in CSS.
Most likely, you will have to listen to window.resize to catch the rotation of the tablet or phone (most often transitions between grids). But it's not very difficult.
Well, to make it really cool, you can bind to css variables (smells like hardcoding), but if the conditions allow, then it will work together with styles. This is great.

S
Stanislav Ezersky, 2020-03-16
@EzS

And if you determine using the mobile detect library? And then palm off depending on devices/permissions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question