Comments (3)
Okay I see.
I will look into it 👍
from vue-parallax.
I guess you mean the first parallax effect in on the demo page?
Well the parallax stops, because of how the image is set and calculated.
Often the image is set to a height auf 100% or 100vh, so it would cover the whole background. And your section would be a small visible part of it. This makes totally sense if you have some kind of background like image.
However my aim was to add a subtle parallax effect to images which are not meant to be background images. Because of that, the image scales only to 110% I guess (or something around that value) so you have a pretty clear section of the image, without much cutoff.
But this way, you don't have that much space to move your image. Only that 10% up and 10% down. So on bigger screens it might stop earlier.
Is there a reason not to use section?
Well, as far as I know there would be no possibilty to let the user input an element they wish. This would require to rewrite it as a vue directive. Which could get a bit tricky.
However feel free to submit a PR :)
from vue-parallax.
Heya @apertureless
Yes correct, I was talking about the first effect.
If you're scaling it up to e.g. 110%, it should be pretty straitforward to have it mover over the whole length of the page with some calculations ;-)
Sections have semantic value, so in general I wouldn't use them for decoartive purposes like these, though it depends on what goes into the slots (but maybe leave that to the user and simply use a div).
Cheers!
from vue-parallax.
Related Issues (20)
- Error in beforeCreate hook because of reference to local file HOT 1
- Reasoning for wide breakpoint default HOT 2
- SSR: false does not work HOT 2
- DEMO not workin HOT 2
- Bg image leaving white space inside the div HOT 5
- PR unmerged HOT 3
- Image in the bg moves outside the container
- Default value of direction HOT 1
- Layer multiple instances of <paralllax></paralllax> on top of one another to create a cool layering effect? HOT 2
- @nextindex/next-scss/next-scss HOT 3
- where is the code that powers the demo? HOT 1
- Altering the parallax rate.
- Parallax stops midway. please help! HOT 5
- auto height and full width HOT 1
- ma come cazzo si fa a fare un componente cosi?!? HOT 1
- Can't use it with Vuetify? HOT 3
- how to use when more than 2 images ?
- Cannot click button inside parallax HOT 1
- Hi, any vue3 news? ) HOT 5
- Parallax doesn't work for images which in the middle of the page
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-parallax.