Skip to content

Add css class to article/block/component when on screen #1100

Description

@lc-thomasberger

As mentioned here

This will make it easy to add css based animations when a Element is scrolled into view.

"_onScreen": {
    "_isEnabled": true,
    "_classes": "bounceOutLeft",
    "_options": {
        "_percentFromTop": 25,
        ....
    }
}

new syntax:

{
        "_id": "b-05",
        "_parentId": "a-05",
        "_type": "block",
        "_classes": "animated",
        "title": "b-05",
        "displayTitle": "",
        "body": "",
        "_trackingId": 0,
        "_onScreen": {
            "_isEnabled": true,
            "_classes": "wobble",
            "_percentInviewVertical": 50
        }
}

Will need to decide if we should only add classes or also remove them ...

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions