Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Parallax with aria-label

  • Hello everyone,
    I’m trying to add a parallax effect to some elements on a website I’m developing.

    To do so I’m using this thread as a guide: https://generatepress.com/forums/topic/parallax-effect-using-generatepress-theme-and-generateblocks/

    Thing is that I wanted to hve different speeds for different elements, so I was wondering if there is a way to customize te “.4” part in

    var coords = (scrolled * 0.4) + ‘px’

    maybe with an aria-label? So that I can just add the parallax class and then tweak the speed (and direction using negative numbers) of the effect for that specific element.

    Otherwise, should I duplicatee the script with a different class for each speed?

    Thanks!
    Lorenzo

  • Hi there,

    Otherwise, should I duplicatee the script with a different class for each speed?

    That’s likely the way to go 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.