How to get a placeholder
-
Hi,
I use this plugin since some time and it′s really good, but I have a problem, that even other plugins doesn′t solve.
Imagine you have a long list with stuff. Every part of the list has it′s own image like this:^ total height: 1800px
| image: 300px height
| image: 300px height
| image: 300px height
| image: 300px height
| image: 300px height
| image: 300px height
vAs long as the images aren′t loaded this is the length of the list:
^ total height: smaller than 1800px
| spaceholder from Lazy Load: some px height
| spaceholder from Lazy Load: some px height
| spaceholder from Lazy Load: some px height
| <- you want to get here by ancor, absolute position: 400 px
| spaceholder from Lazy Load: some px height
| spaceholder from Lazy Load: some px height
| spaceholder from Lazy Load: some px height
vNow you use a link to an ancor to scroll down fast. Above you see where you want to land, but you land somewhere else, because the images get opened by Lazy Load:
^
| image: 300px height
| <- you land here at absolute position: 400px
| image: 300px height
| image: 300px height
| <- you wanted to land here, absolute position now: 900 px
| image: 300px height
| spaceholder from Lazy Load: some px height
| spaceholder from Lazy Load: some px height
vThe problem could be solved very easy. Read out the height from every image and expand a space holder image with 1px x 1px to the needed height at the same psotion. This way the list keeps it′s height and you can use ancor links without problem.
Would be nice if you could build something like this in your next version.Thank you for taking the time to read this.
The page I need help with: [log in to see the link]
- The topic ‘How to get a placeholder’ is closed to new replies.