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.

data- attributes wont work

See original GitHub issue

Here my parallax div:

<div data-natural-height="245" data-natural-width="1900" data-bleed="10" data-position="center bottom" data-image-src="/sites/all/themes/furcoat/images/header.jpg" data-parallax="scroll" class="breadcrumbs-region">

image size is 1900x245, div size is 250px, parallax is working, BUT it zoomed x2, and I can’t define position or natural size by data-position=“center bottom”, or data-position=“top” etc. It wont work as I needed. Any suggestions?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
mikegreilingcommented, Dec 28, 2015

the only time data-position is taken into account is when the image is taller than needed and needs to be aligned within the available space.

0reactions
wstoettingercommented, Oct 10, 2017

closing old issues for cleanup purposes. feel free to reopen if this issue is still relevant.

Read more comments on GitHub >

github_iconTop Results From Across the Web

jQuery getting data attribute not working - Stack Overflow
I have a script that produces a number of buttons with a class and I want it to alert the data attribute on...
Read more >
Why data- attribute sometimes doesn't work?
As you can see I'm using data-item attribute to pass index of that item. Here is my JS function that I'm using: selectItem(evt)...
Read more >
what to do if data-attribute is not working ? - jQuery Forum
Hi,. it looks like our Apache server is not configured to work with html5, I talk to people in charge of the configuration...
Read more >
Using data attributes - Learn web development | MDN
To get a data attribute through the dataset object, get the property by the part of the attribute name after data- (note that...
Read more >
Fixing data attribute not found errors - IBM
Running on data sources that do not have the custom attributes results in undefined behavior (incomplete results, incorrect results etc). To resolve the...
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