question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple layers / multiple slides?

See original GitHub issue

Hey, I really like this lightweight parallax lib. However, I’m trying to get multiple layers to work. Isn’t that what the custom slides setup is for?

My setup is like this:

<section class="parallax-window" data-parallax="scroll" data-natural-width="2560" data-natural-height="1660" data-image-src="{{ asset('images/backgrounds/DP_Space.jpg') }}">
    <div class="parallax-slider">
        <img src="{{ asset('images/parallax/DP_Bildwelt06.png') }}" style="position: absolute; width:100%; margin: 0 auto; display: block;">
    </div>
</section>

But when adding the .parallax-slider inside the .parallax-window element, the image of .parallax-window doesn’t get rendered / doesn’t get transformed into a slide.

Is there no support for multiple layers?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
LukeFixtcommented, Oct 9, 2018

I just came across this issue - two years too late - better late than never…

I solved it by removing the px.parallax data before attempting to add another parallax to the same element.

$element.parallax(...);

// If you need to access data before removing
// $element.data('px.parallax').doSomething();

$element.removeData('px.parallax');

$element.parallax(...);
0reactions
artbrandercommented, Feb 23, 2019

Dunno if there’s an “official” fix for this yet, but I managed to get layers working just by playing with data-mirror-selector and data-z-index.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Create Multi Layer Infographic with powerpoint
... here how we can create multi layer Infographics on Microsoft PowerPoint. which we can use in RFP RFI and Pursuit documents Presentation....
Read more >
Layers in PowerPoint: gain control over your presentation
Learn how to use layers in PowerPoint to gain control over your digital environment and construct complicated animations with ease.
Read more >
Layer objects on slides - Microsoft Support
Select the object. Right-click and select an option: Bring to Front - to move the object in front of all other objects.
Read more >
5 Dimensions With Multiple Layers | PowerPoint Slide Template
Creating stunning presentation on 5 Dimensions With Multiple Layers with predesigned templates, ppt slides, graphics, images, and icons.
Read more >
Export multiple layers to powerpoint slides
So I have a legacy dashboard that is set up to act like a slide deck ... It is one dashboard with multiple...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found