Version:
Cohesiondx.com

    Adding on-view animations to elements

    You can animate any element into view as the user scrolls down the page. For example, you can add an on-view animation to a Container element which tells it to fade in as it enters the user's browser view port. 

    Adding on-view animations

    The on-view animations are available on all elements which can render a block element. To access the on-view animations:

    1. Navigate to a page or template with the Layout canvas
    2. As an example, add a Paragraph element to the Layout canvas
    3. Double click on it to edit its settings
    4. Click on the ...ellipsis tab and select Animate on view

    Access-animate-on-view.png

    Configuring on-view animations

    The Animate on view includes the following settings:

    • Group - Select the type of animation. These have be added to logical groups
    • Animation - Select the animation
    • Duration - Set how long in milliseconds the animation will take to run
    • Delay - Set a start delay on the animation in milliseconds
    • Offset - Set the animation to start at a specific offset before or after the element has entered the view port
    • Iteration - Set the number of times the animation should run

    Animate-on-view-settings.png

    Some on-view animations will animate elements from the left or right of the browser Viewport. When you use these animations, you need to add the style to a parent container overflow: hidden or you will see horizontal scrollbars appear. For more information about styles, see Using the style builder.

    Enable or disable animate on-view on touch devices

    You can configure the on-view animations to apply or not apply on touch devices. Animation on view can cause usability problems on touch devices so this option is set to Disabled by default. This setting is within Configuration because it is a global setting.

    To change the Animation settings:

    1. Navigate to DX8 > Configuration > Animation settings
    2. Select Enabled or Disabled
    3. Click Save.

    Animation-settings.png

    Cohesion DX8 Help center

    Launch our Help center to raise a support ticket or search our knowledge base of common questions and answers.

    DX8 knowledge base icon

    Knowledge base

    Get instant answers to common questions. Available online 24/7.

    Find answers

    Raise a ticket icon

    Raise a support ticket

    Log in to the Help center to raise an issue. Available Monday - Friday, 09:00 - 17:00 GMT.

    Raise ticket