Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parallax-video called by data-values instead of by javascript #423

Closed
pxamike opened this issue Jun 13, 2018 · 0 comments · Fixed by #424
Closed

parallax-video called by data-values instead of by javascript #423

pxamike opened this issue Jun 13, 2018 · 0 comments · Fixed by #424
Assignees
Labels

Comments

@pxamike
Copy link
Contributor

pxamike commented Jun 13, 2018

In /Resources/Private/Templates/GridElements/Parallax.html the parallax-video uses the data attribute data-jarallax-video for the video-url.

This is enough to trigger jarallax and thus the javascript that deals with the configuration of parallax-video-classes in /felayout_t3kit/dev/js/main/contentElements/parallax.js
is being ignored (from my testing).

I suggest that we either change it so (1) all jarallax "items" are triggered from javascript or (2) that we add the other data-parameters into the HTML-template. The first suggestion is probably the safer one.

@pxamike pxamike self-assigned this Jun 13, 2018
@pxamike pxamike added the bug label Jun 14, 2018
@dmh dmh closed this as completed in #424 Jun 22, 2018
dmh pushed a commit that referenced this issue Jun 22, 2018
* [TASK] upgraded jarallax to 1.10.3.
- Updated the javascript configuration for it.

* [FIX] jarallax - better handling of http/https urls (https urls would break in Edge)

* [TASK] jarallax - disable parallax-effect in Edge, since the effect generally lags and doesn't currently work in EdgeHTML17 (see issue #110 in github)

* [FIX] Parallax grid-element:
- changed attribute on parallax-video from data-jarallax-video to data-video-url.
- changed javascript for parallax-video to use this field
- removed css for parallax that overwrote the background-image (the js of jarallax takes cares of this)
- we can't disable parallax for Edge on video-elements without also disabling the video, so enabled it again (compared to images it does seem to work in latest Edge)
- compileLess, compiledCss

* [TASK] removal of console.log

* [TASK] removal of console.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant