Coder Social home page Coder Social logo

Comments (3)

tgomilar avatar tgomilar commented on May 24, 2024

Any possibility to provide some code or maybe Codepen example? Paroller calculates positions based on current scroll position. In some cases this is a feature in others obviously a bug 😄

from paroller.js.

 avatar commented on May 24, 2024

I have a similiar issue. I have a Logo Image on the Landing Page with a Background Image . The Logo should moves with the scroll down as the BG stays. But when I use the data-paroller the logo is always to close to top and its cut off the screen. When loading the landing page it should be fully visible. It works when i set the type to background but then the image is not more moving downward while scrolling.

I tried to use a margin on the img logo but its not applied when i use the paroller. Any suggestions?

<section id="showcase"> <div class="container-fluid bg" data-paroller-factor="0" data-paroller-type="background" data-paroller-direction="vertical"> <div class="row"> <div class="col-md-6 col-sm-6"> <div class="showcase-left"> <div data-paroller-factor="-1" data-paroller-type="foreground" data-paroller-direction="vertical"> <div class=row> <img src="{$bat.theme}/img/transparent512_desat.png"> </div> </div> </div> <div class="col-md-6 col-sm-6 col-xs-6"> <div class="showcase-right"> </div> <!--<a class="btn btn-default btn-lg showcase-btn"></a>--> </div> </div> </div>

#showcase{
}
.bg {
background:
url(../img/probelokal_gruppenfoto.jpg);
border-top:#333 16px solid;
background-size: 100% auto;
background-attachment: fixed;
background-repeat: no-repeat;
}
#showcase img {
width:65%;
margin-left:0px;
margin-top:2em;
opacity: 0.9;
filter: alpha(opacity=80);
}

from paroller.js.

tgomilar avatar tgomilar commented on May 24, 2024

Hi,
please provide some working code example via Codepen or any other online code editor/previewer.

Anyway new version of paroller.js doesn't rewrite previously defined transitions on data-type="foreground" this might be useful if you previously define position with css.

from paroller.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.