Git Product home page Git Product logo

Comments (11)

Grawl avatar Grawl commented on June 11, 2024 1

@scorp559 WUT

from jparallax.

zsitro avatar zsitro commented on June 11, 2024

+1

from jparallax.

chavocuervo avatar chavocuervo commented on June 11, 2024

I'm having same issue. If I center the layers with negative margin-left and left:50% everything looks ok, but when I put the cursor inside viewport layers makes a fast move from center to left and center again. I mean, is like when I hover to viewport the parallas initializes from left and not from center.

from jparallax.

nicothin avatar nicothin commented on June 11, 2024

+1

from jparallax.

alessandroalessio avatar alessandroalessio commented on June 11, 2024

+1

from jparallax.

sulram avatar sulram commented on June 11, 2024

+1

from jparallax.

Grawl avatar Grawl commented on June 11, 2024

Solved. Look at #69

from jparallax.

scorp559 avatar scorp559 commented on June 11, 2024

i have problem ,,,

.parallax-viewport { height: 80%; margin: 30px 160px 0px 630px; position: absolute; text-align: center; /* width: 690px;*/ width:1000px;}
.parallax-layer { position:absolute; text-align:center;}
.parallax1 {width: 900px; height: 533px; display: block; margin-top: -610px; margin-left: -220px;}
.parallax3 {width: 930px; height: 533px; display: block; margin-top: -610px; margin-left: -230px;}
.parallax4 {width: 890px; height: 533px; display: block; margin-top: -610px; margin-left: -216px;}
.parallax5 {width: 910px; height: 533px; display: block; margin-top: -610px; margin-left: -230px;}
.parallax-layer.parallax1 > img { margin-left: -1100px; margin-top: -690px; width: 21%; }
.parallax-layer.parallax3 > img { margin-left: -750px; margin-top: -715px; width: 21%;}
.parallax-layer.parallax4 > img { margin-left: -456px; margin-top: -660px; width: 21%;}
.parallax-layer.parallax5 > img { margin-left: -154px; margin-top: -690px; width: 21%;}

can`t be center... plz help

from jparallax.

scorp559 avatar scorp559 commented on June 11, 2024

.parallax-viewport { height: 80%; margin: 30px 160px 0px 630px; position: absolute; text-align: center; /* width: 690px;*/ width:1000px;}

from jparallax.

Grawl avatar Grawl commented on June 11, 2024

I dunno what you are trying to achieve. It's your CSS problem I think.

from jparallax.

patricknelson avatar patricknelson commented on June 11, 2024

Well it's a combination of a few issues. Your CSS should have a graceful degradation to initialize at the proper position (if parallax itself never initializes), but also the parallax plugin needs to properly initialize it's own "idea" of where things are located as well (which it wasn't doing until my PR). Also, it doesn't register properly if your mouse is already over it. So, I think this may be an issue that is likely resolved by my PR here (i'm going through the old issues and seeing which may already be tackled by my PR's): #89

I explained a bit further on another issue here: #69 (comment)

from jparallax.

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.