Closed ColoradoWebGuy closed 6 years ago
@ColoradoWebGuy thanks for the note. Jarallax looks promising. Wish it had more stars on Github, but that's not a huge deal. Took a little tweaking to get content to look right, but I think with some changes we could make that simple. The goal of these shortcodes is to get great results from people who may not know much about CSS/Javascript.
I'll keep playing with this a bit and if everything goes well we'll switch out the current library with Jarallax.
@edmistj Sounds great – thanks for looking into it.
This appears to have been implemented.
Prerequisites
Description
Noticed a few defects with the new parallax from this short-code:
The main issue is that there's a flickering problem when scrolling; here's a video to show what I was seeing. This was tested in Google Chrome, Safari, and Firefox from an Apple Macbook Pro. Additionally, it was tested under the prealpha site (here's a video for that too). All I did was I added
<div style="background-color:#333"><br /></div>
before the shortcode to see the flicker.The second issue is that the parallax turns into just a static image on mobile. In a way, this is fine, but I wished it would've acted the same as it did on desktop. At least from a designers perspective, and to keep the consistency.
Lastly, I wasn't sure I really liked the defined height option without any content. If it's 400px on desktop, then it's 400px on mobile (really long).
To fix these things, I personally think you need to update the parallax short-code, and go with a different javascript library, Jarallax. Jarallax not only fixes these issues, but it also has additional features such as parallaxing videos, and elements!
Below is a new custom short-code I've made (working), and I've only got a small amount of everything that Jarallax could offer so far. Attached is also a screenshot of all the other lava details that went with it.
Jarallax Shortcode
Shortcode Markup
Everything else
Steps to Reproduce
Expected behavior:
No flickers. Parallax on mobile.
Here's a video of a working parallax using Jarallax.
Additionally, here's a video of a video parallax.
Actual behavior:
It flickers. As I've mentioned before, here's a video to show what actually happens.
Versions