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

Background image not working #77

Open
SkyZySR opened this issue Dec 16, 2020 · 3 comments
Open

Background image not working #77

SkyZySR opened this issue Dec 16, 2020 · 3 comments

Comments

@SkyZySR
Copy link

SkyZySR commented Dec 16, 2020

 <div class="rounded paroller" style="background: url({{asset('frontend/img/page/over-head-line.jpg')}}) repeat center; background-size: cover;height:648px;" 
                        data-paroller-factor="0.5"
                        data-paroller-factor-md="0.3"
                        data-paroller-factor-sm="0.2"
                        data-paroller-factor-xs="0.1"
                       
                    ></div>

and init like this
$('.paroller').paroller();

@AMK882KXX
Copy link

Faced the same problem. Only foreground elements work

@Socrapop
Copy link

Can confirm this, jQuery version 3.5.1
No error in the console, the "background" property keeps the Y position value at 0:

background: url("https://unsplash.it/1920/500?image=974") no-repeat scroll center 0 / cover;

@Socrapop
Copy link

@AMK882KXX @sythasiek
Update : Found the solution: do not use the minified script ;) Last update of that file was two years ago...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants