Комментарии:
Sub up! To answer today's question: My head isn't bigger than an airplane, but if I don't take control of myself tonight and drinking for new year's eve, my head might be as high as an airplane!
ОтветитьWouldn't it be better to query-select the targets outside of the event-listener function?
ОтветитьDon't call yourself an idiot. You saw the mistake and fixed it. nobody truly cares whether you are an idiot or not, they are too focused on their own issues.
ОтветитьWhat a great tutorial! Thank you for sharing!
ОтветитьMine's pink.
ОтветитьThank you! If I were roughly 7 miles away from a commercial jet, my head would appear the same size as the airplane.
ОтветитьThe physical size of my head no
but the actual size of my intelligence cannot be measured
...hmmm I think it's too small to measure
nah ion think my head as big as an airplane i think its like the size of a small mellon
Ответитьmy head is bigger than my brain - thanks for a great toturial
ОтветитьDepends on the z-index and transform functions you chose!
ОтветитьThanks you, for this video it was just what I was looking for
ОтветитьBest tutorial for parallax scrolling out there. Well done.
ОтветитьThe scroll is endless
ОтветитьHow to limit the scroll? it has endless scroll
ОтветитьJust a few lines of Code. Ha ha. When does it stop?
ОтветитьWell I have an Airplane made from a Kit I got from my Sister-in-law in Chiclayo, in Peru, and actually my head is bigger than that Airplane. So there! What do you Girls think of that?
Ответитьsuper useful thanks!
ОтветитьThey are beautiful. Why wouldn't they be?
ОтветитьYour children are great and your content are very useful. Thanks!
ОтветитьMy head is not as big as an airplane unfortunately! :D
Ответитьhow do you get time to learn and play electric guitars as a software engineer?
Ответитьreally cool tutorial ! :) but how do you activate the parallax effect on an element only when it is visible, because if the element is in the middle of a long page, it will have already started to scroll without so we can see it
Ответитьlol I spelled parallax the same way when I was looking for a video on this.
Ответитьyes
Ответитьgreat tutorial but this is not a parallax
ОтветитьI had been browsing hours to find good tutorial and this is the best one, you saved my day, thank you!
Ответитьhaha cute daugthers with kittens!
ОтветитьThanks from korea 😁😁
ОтветитьGary did not mention about the scroll bar problem due to the continuous scrolling down <li>lax</li>. You would be unable to scroll to the end of the web page. Anyway, thanks for sharing.
ОтветитьAWESOME! Thanks man
ОтветитьSo cool! I learn so much from you!)
In this particular case thought, I have a few suggestions:
- It's the ideal case to use position fixed on the circle
- It's easier to use percents as transition values since we can access viewport height on window as innerHeight
const parallax = `${(window.pageYOffset / window.innerHeight) * 100 * 5}%`;
Thx for a tut that's to-the-point, with end state codepen provided, great pace. Will definitely check out your site.
Ответить.head-of-mine {
width:auto;
height:auto;
}
.body-of-mine{
width:100%;
height:100%;
}
Ya I am a big head
Ответитьany of those parallaxes work fine with mousewheel jumps?
ОтветитьHey! How can I apply this to an image? What I'm trying to do is to make an image bigger inside a rectangular div so that when I scroll the image inside gets pushed down a little like in the video but not the div. Because the image would be bigger than the div, the image would be coming down but we would not see any white space increasing! Please! This is the best parallax tutorial I've watched since I started to make that effect like 3-4 hours ago.
Also, the mentioned image is small, all the tutorials show always an image that covers the entire width of the page or something like that. My image is just on the left side of a paragraph. The size of the div parent is "245px X 245px".
Some examples of that effect are seen on the Soundcloud app where the covers have a parallax effect.
Thanks for the great video!
It works perfectly on PCs but for some reason, it doesn't work on phones. Any suggestions on fixing that??
a very small airplane
ОтветитьSimple example. Easy to understend. Thanks!!
ОтветитьThat was truly amazing
ОтветитьAwesome thank you
ОтветитьThank u gud sir
ОтветитьAnswer for today's question: I don't think my head is so big. But I know one man whose head is exactly as described vertically.
Ответитьhas there been any updates in css or javascript? I am following word for word but the parallax effect is not working.
Ответитьit is medically impossible for a persons head to be as large as an airplane
ОтветитьThanks a lot for this video! It has helped me in a real project.
Ответить