Hi Marek.
I'm not sure what you wanted to show on this example.
Obviously, the example uses JS that adds the data attributes to #sp-main-body
.
Using the class field, you cannot achieve this. This field simply adds classes to the class
attribute.
Of the classes you added (1), two classes work, as they have CSS code (2).
delay800
& duration400
classes do not work, since there is no CSS code for them.
In my example, I showed you how to make it work through CSS.
And you will be surprised, but your animation now works on the basis of those classes for which there is a code that uses these properties:
animation-name: fadeInDown;
animation-duration: 1s;
You just don’t notice its work, since you have a very huge background image. Reduce it to 1920 px width and compress.