data- attributes wont work
See original GitHub issueHere 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:
- Created 8 years ago
- Comments:5 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.closing old issues for cleanup purposes. feel free to reopen if this issue is still relevant.