diegoversiani / smooth-parallax Goto Github PK
View Code? Open in Web Editor NEWSmooth Parallax makes it a lot easier to move objects when the page scroll with ease.
Home Page: https://diegoversiani.me/smooth-parallax/
License: MIT License
Smooth Parallax makes it a lot easier to move objects when the page scroll with ease.
Home Page: https://diegoversiani.me/smooth-parallax/
License: MIT License
Hi Diego!
Love the plugin. It has what other parallax plugin don't have - smooth transitions on scroll end.
Like those clouds in the demo: https://diegoversiani.me/smooth-parallax/
Unfortunately this one specific feature doesn't work in Firefox (Quantum) and also breaks the element movement entirely.
It works on Chrome, Edge, IE 11 and Safari, though - so that's nice.
I am trying to use Smooth Parallax with a background image on Blogger/BlogSpot. However, I cannot get the image to start at the top of the page when scrolled all the way to the top; the background image always jumps down a little bit after the page loads.
I tried modifying start-position-y
to "0" and a negative quantity, but it made no difference. Maybe my container is the problem? I think it would be helpful to allow negative values for start-position-y
if you don't already (but it looks like you already do, based on your hippie van example).
JS:
<script type="text/javascript" src="https://wad11656.github.io/smooth-parallax.min.js"></script>
<script type="text/javascript">
window.addEventListener("load", function () {
SmoothParallax.init();
});
</script>
HTML Body:
<img class="parallax_bg" src="https://drive.google.com/uc?id=1EHze1D1aTRvMiEWLNhUT7vwYVvJ1Ahxv" container=".content-outer" smooth-parallax="" start-movement="0.09" end-position-y="2.5"></img>
CSS:
.parallax_bg {
width: 100%;
z-index: 0;
position:absolute;
}
HTML structure:
...
<div class="site-offset">
<a href="#" id="k-flux" smooth-parallax="" container=".site-offset" start-movement="0.05">FLUX</a>
<div id="content" class="content">
...
</div>
</div>
...
Init as required:
<script type="text/javascript">
window.addEventListener("load", function () {
SmoothParallax.init();
});
</script>
If well understood the point, #k-flux should move within ".site-offset". No error, warning or whatsoever. It just doesn't work.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.