No video

How To Create a Cool Parallax Scrolling Effect For Your Websites

  Рет қаралды 369,357

iEatWebsites

iEatWebsites

Күн бұрын

In this video I will show you how to create two types of scrolling parallax effect. One using only CSS and another one using Javascript.
Download Parallax.js: pixelcog.github...
Music by: Nicolai Heidlas Music - Happy Harmonies
/ nicolai-heidlas

Пікірлер: 293
@christoph_fer
@christoph_fer 7 жыл бұрын
FINALLY a KZfaqr that understands what parallax actually is.
@ieatwebsites
@ieatwebsites 7 жыл бұрын
+Christopher Fernandes haha! Thanks!
@RandomPerson-iy8jg
@RandomPerson-iy8jg 3 жыл бұрын
@@ieatwebsites Yes Christopher is absolutely right! I surfed through youtube all day but I couldn't find a video that is a bit simple and understandable until I got this video.
@bimaajilaksana
@bimaajilaksana 3 жыл бұрын
lol relatable
@joladekilani8680
@joladekilani8680 2 жыл бұрын
😂😂😂
@slambodianjones
@slambodianjones 6 жыл бұрын
Liked! Can't wait to follow along. This was incredibly easy to follow along! I love parallax sites. Making one for my music project and spent about 3 hours on it yesterday, my buddy was blown away.
@ieatwebsites
@ieatwebsites 6 жыл бұрын
That's great!! 😁
@baliyachtservices7505
@baliyachtservices7505 3 жыл бұрын
I just tried it out (Nov 2020) and all still working magnificently. Thanks!
@macdev5465
@macdev5465 3 жыл бұрын
Thank you so much bro! finally a did with just two line on code
@freebird754
@freebird754 5 жыл бұрын
For those having problems with the second example make sure the syntax of your script tag is correct. Use NOT src="parallax.min.js" .If you're not used to running javascript on your websites this can be a rookie mistake and the console won't give you an error.
@mohankumar349
@mohankumar349 6 жыл бұрын
Thanks a ton. This is the easiest way ever. Bootstrap sucks a great deal of time in figuring out. CSS is always the best.
@ieatwebsites
@ieatwebsites 6 жыл бұрын
Thats great! You welcome.
@billmaragos2812
@billmaragos2812 5 жыл бұрын
My image was also not showing, turns out I was not applying the path correctly. My parent directory has the folders: "images", "scripts", "styles" and the file "index.html" in it. The "index.css" file which is what the css reads by default, is in the directory: "parent/styles/index.css". Since the image is placed in a directory above that of the css file ("parent/images/image.jpg"), the needed path for the image is this: "../images/image.jpg", where the two dots indicate that CSS should start the directory from the parent folder of the current running directory. The line of code in the end should be: "background-image: url('../images/image.jpg');" without the "no-repeat" and "center". TL;DR Use this: background-image: url('../images/image.jpg');
@kimberlismith7029
@kimberlismith7029 6 жыл бұрын
Great video! Easy to follow and allowed me to create a beautiful parallax website. Just a thought, you should include info on how to make the parallax image responsive; it was a bit of a challenge trying to figure out how to get image to scale for mobile screens.
@matheoradits8708
@matheoradits8708 4 жыл бұрын
Hello, I have the same problem, how do you solved it?
@vishnyo
@vishnyo 4 жыл бұрын
Cool and simple feature
@Detteermiig
@Detteermiig 4 жыл бұрын
Awesome video that explains everything in depth and fast! Comparison at 4:30 and 9:12 would be nice side by side.
@zeefmusic
@zeefmusic 2 жыл бұрын
This was super helpful, thank you so much
@ieatwebsites
@ieatwebsites 2 жыл бұрын
You welcome!
@gourangasound5519
@gourangasound5519 4 жыл бұрын
Hey man, just wanted to say thinks for this vid. I've been battling this all day and your vid finally helped me solve it (the z-index thing haha)
@ieatwebsites
@ieatwebsites 4 жыл бұрын
You welcome! 😁
@dadomultimedia
@dadomultimedia 4 жыл бұрын
Thank you, for this tutorial, I already had this good script, but honestly, I was not pretty sure how to run it. Now, it´s working neatly! THANk you!
@pallavilimbasiya9340
@pallavilimbasiya9340 3 жыл бұрын
Thank a lot sir... Very easy way to get this effect..
@jcf3300
@jcf3300 7 жыл бұрын
Sick!! I'm entering design from the back-end (python - flask/django), and this is exactly what I've been looking for. In fact, I was specifically curious as to what the "parallax" effect was that I've seen so much of lately, and lo and behold you've mocked it straight up here. Thanks a ton bro, and I'll be sure to check out the rest of your vids. Keep it up!
@maxwelljann5462
@maxwelljann5462 5 жыл бұрын
5:16 second part
@luciamendiburu5752
@luciamendiburu5752 2 жыл бұрын
thx for saving my life
@ARLyricsNightcore
@ARLyricsNightcore 2 жыл бұрын
Thank you so much!! Great tutorial, easy to follow and everything explained.
@xypheli
@xypheli 7 жыл бұрын
it doesnt work for me :/ altough the css and html parser cant find an issue.
@miguelgil2172
@miguelgil2172 4 жыл бұрын
i love you man so so much 2020, this help mi a lot
@ieatwebsites
@ieatwebsites 4 жыл бұрын
I’m glad it helped. Thank you! 😁
@slack.
@slack. 7 жыл бұрын
awesome!!! simple and straight forward tutorial. thanks a lot
@ieatwebsites
@ieatwebsites 7 жыл бұрын
You Welcome! :)
@thatsoofingreat8295
@thatsoofingreat8295 6 жыл бұрын
@IEatWebsites My image won't show, can you help? i did everything you did
@jesse8206
@jesse8206 6 жыл бұрын
me 2
@johndarksoul
@johndarksoul 3 жыл бұрын
@@thatsoofingreat8295 the exact same thing happened to me. i fixed it buy deleting the code for the image and I wrote it again. and it appeared somehow haha
@hampusaustvikhagstrom8990
@hampusaustvikhagstrom8990 3 жыл бұрын
thanks this helped out a lot!
@ieatwebsites
@ieatwebsites 3 жыл бұрын
You welcome!
@victorross5524
@victorross5524 4 жыл бұрын
if i could, i would leave a thousand likes for u man, thank you.
@ieatwebsites
@ieatwebsites 4 жыл бұрын
Thank you so much!! 😁
@sjankarcher
@sjankarcher 6 жыл бұрын
Thanks for this. I just wanted that simple css parallax. I wasnt aware it was so simple!
@ieatwebsites
@ieatwebsites 6 жыл бұрын
You are welcome!
@orvinwelchez5839
@orvinwelchez5839 5 жыл бұрын
Excellent video, easy to follow, thank you!
@ieatwebsites
@ieatwebsites 5 жыл бұрын
You welcome!
@conaxlearn8566
@conaxlearn8566 4 жыл бұрын
Nice! Thank you.
@ieatwebsites
@ieatwebsites 4 жыл бұрын
You welcome.
@YuvalDavid-mi7sn
@YuvalDavid-mi7sn 4 жыл бұрын
Great, thank you!
@ieatwebsites
@ieatwebsites 4 жыл бұрын
You welcome!
@lokeshnaidu1935
@lokeshnaidu1935 3 жыл бұрын
my elements are placed behind that parallax image , i have given z-index correctly but still elements are placed behind that parallax image. I have given data-z-index="2" and the elements that i want to over the parallax image is given 999 value for z-index, then too this elements are placed behind the image
@ishaanpandey
@ishaanpandey 3 жыл бұрын
omg tysm i liked and subbed u r grt
@mialsky745
@mialsky745 2 жыл бұрын
Hi, when i write this code i have two texin on hight . text-text-image not text-image(beetwen the text)-text can you help me?
@TheElkster
@TheElkster 3 жыл бұрын
That was super easy to follow and simple to replicate! Thank you for sharing :D
@ieatwebsites
@ieatwebsites 3 жыл бұрын
You welcome! 😊
@annasizemore1142
@annasizemore1142 4 жыл бұрын
Worked perfectly on the first try. Thank you!
@ieatwebsites
@ieatwebsites 4 жыл бұрын
You welcome
@h00dboy
@h00dboy 5 жыл бұрын
The CSS solution doesn't work on older Android devices and breaks on mobile Safari. For more check the property on "Can I use". Cheers!
@subvice2593
@subvice2593 5 жыл бұрын
good call. media queries can be used to turn off parallax for mobile devices, most parallax look buggy on mobile
@DevinGarrow
@DevinGarrow 2 жыл бұрын
I've followed along step by step, and yet the second example doesn't work in any capacity. The only thing different is the file path, which I'm quite certain I've gotten correct. The image is also a png instead of jpg. Any help?
@ga7853
@ga7853 5 жыл бұрын
Thank you for taking to time to show us that, it was very helpful.
@W1nt3rUSEC
@W1nt3rUSEC 4 жыл бұрын
I just don't know what to say thank you, you helped me a lot :)
@ieatwebsites
@ieatwebsites 4 жыл бұрын
You welcome! Thank you for watching 😀
@disrael2101
@disrael2101 2 жыл бұрын
I can't find Index html in my default templates which dir is it in?
@run4thewin357
@run4thewin357 4 жыл бұрын
So good Thank you guy
@ieatwebsites
@ieatwebsites 4 жыл бұрын
You welcome!
@mitchjohnson4714
@mitchjohnson4714 4 жыл бұрын
Is this distorting the photo? It doesn't look like it, but when I do it, it seems like it's distorting the photo.
@010timeboy27
@010timeboy27 5 жыл бұрын
If the image doesn't appear make sure you're referencing the parallax.min.js file and not the folder its in
@huguenspaul3910
@huguenspaul3910 4 жыл бұрын
Very simple waouh, thank you man, God bless
@ieatwebsites
@ieatwebsites 4 жыл бұрын
You welcome!
@alonsodiaz3298
@alonsodiaz3298 2 жыл бұрын
does this work in Electronjs ?. My image does not appear and I follow all the steps
@saartifexstudio7095
@saartifexstudio7095 3 жыл бұрын
Thanks for explaining in a nice way, I just want to know how to make it full width as you can see your examples were also not full-width pages? Please help.
@AvinashSingh-kl6oz
@AvinashSingh-kl6oz 4 жыл бұрын
When I open the website with liveserver, it works fine. But when I open the .html page from its folder, the image doesn't show up. Same case when I host it online. data-src-img doesn't show. Any idea how to fix this?
@Dummy-be8qv
@Dummy-be8qv 4 жыл бұрын
Thankyou so so much!
@ieatwebsites
@ieatwebsites 4 жыл бұрын
You welcome!!
@elmira5244
@elmira5244 4 жыл бұрын
thank you for video !
@ieatwebsites
@ieatwebsites 4 жыл бұрын
You welcome!
@Businesz
@Businesz 3 жыл бұрын
very helpful thank you a lot!
@itworker5188
@itworker5188 5 жыл бұрын
I just loved your video, liked and subscribed. This is what I really looking for to learn! Thanks Man!
@ieatwebsites
@ieatwebsites 5 жыл бұрын
You welcome! 😁
@mationplays1500
@mationplays1500 6 жыл бұрын
Help. It only shows half of the picture
@grampygamer8584
@grampygamer8584 5 жыл бұрын
WOW!! Simple and to the point! thanks
@codecrafts5263
@codecrafts5263 3 жыл бұрын
Wow..it was awesome
@ieatwebsites
@ieatwebsites 3 жыл бұрын
😁👍
@jeffreyhicks6380
@jeffreyhicks6380 4 жыл бұрын
Thanks, man. Really appreciated this.
@ieatwebsites
@ieatwebsites 4 жыл бұрын
You welcome!!
@Detteermiig
@Detteermiig 4 жыл бұрын
How do you use the negative z-index to have it in the background? Is it just the container that blocks it?
@patohaxx
@patohaxx 3 жыл бұрын
thank you thank you thank you!
@ieatwebsites
@ieatwebsites 3 жыл бұрын
You welcome!! 😁
@gabydagostino6055
@gabydagostino6055 6 жыл бұрын
Excelente, muchas gracias por compartir !!! Thank you very much for your help !!!
@wendikurniaputra2290
@wendikurniaputra2290 3 жыл бұрын
THANK YOU SO MUCH, YOU'RE THE BEST!!!
@ieatwebsites
@ieatwebsites 3 жыл бұрын
You welcome! 😊
@Nice-sm5hr
@Nice-sm5hr 5 жыл бұрын
Thank you kindly, this tutorial was exactly what I needed!!!
@ieatwebsites
@ieatwebsites 5 жыл бұрын
You welcome! 😊
@edohraje5723
@edohraje5723 4 жыл бұрын
*Man great tutorial
@ieatwebsites
@ieatwebsites 4 жыл бұрын
Thank you!
@samyakkapoor2717
@samyakkapoor2717 4 жыл бұрын
Dayum, this is interesting bro
@kjemradio
@kjemradio 7 жыл бұрын
The problem with Parallax from the research I have done is that it doesn't work with SEO. This is due to all the content being on one page as opposed to multiple pages as in traditional design. While this may be great for mobile, killing SEO results is a very bad idea. This is like the old days when we used anchor tags to reference different parts of a page through the #.
@PrathamInCloud
@PrathamInCloud 6 жыл бұрын
Hi, I think there is a problem with the jQuery plugin and the other scripts running on the page. Because when I tried all steps I got a blank page and nothing was there. Can you please help me with this
@noorlibya9840
@noorlibya9840 5 жыл бұрын
Thanks , Thanks very much .very good lesson ....
@ieatwebsites
@ieatwebsites 5 жыл бұрын
You welcome :)
@nanudematos
@nanudematos 4 жыл бұрын
THANK YOU
@ieatwebsites
@ieatwebsites 4 жыл бұрын
You welcome!
@EvanChesterman
@EvanChesterman 5 жыл бұрын
Image never shows up. The container for the image holds the correct width but no picture. I even added the z index.
@billmaragos2812
@billmaragos2812 5 жыл бұрын
background-image: url('../images/image.jpg');
@bonifacesoh2255
@bonifacesoh2255 4 жыл бұрын
Bice video man. Thank
@ieatwebsites
@ieatwebsites 4 жыл бұрын
You welcome!
@svenwaser5060
@svenwaser5060 4 жыл бұрын
Wich plugin did you used in Atom to create a div with this syntax (div.className)
@anjumara5318
@anjumara5318 3 жыл бұрын
Yo good one,and also easiest Thankyou really appreciated it🌸
@hunnyff_official
@hunnyff_official 2 жыл бұрын
bro my hero is you
@MohitFineLines
@MohitFineLines 3 жыл бұрын
can we add more smoothness in the effect or it would be the same as it is provided in the JS file ???
@Nhankindredmain
@Nhankindredmain 2 жыл бұрын
NICE
@glpereyraar
@glpereyraar 4 жыл бұрын
ty soooo much!!!
@ieatwebsites
@ieatwebsites 4 жыл бұрын
You welcome!
@jasonmighty3328
@jasonmighty3328 7 жыл бұрын
Im a little bit confused - in the first example the back ground image changes whenever it appears. How have you done this effect?
@coryswanson2247
@coryswanson2247 6 жыл бұрын
got all the way to z-index, using 1 as my value does nothing. what should i do?
@subhajitchatterjee5238
@subhajitchatterjee5238 5 жыл бұрын
the position of the image is getting fixed to the bottom while scrolling...what am i doing wrong ??
@matheoradits8708
@matheoradits8708 4 жыл бұрын
Hello, is there any kind of way to get this effect on mobile. Because every time I tried it the picture was only enlarged.
@gemcapistrano
@gemcapistrano 3 жыл бұрын
I'm using Sublime Text Editor, I can't apply the CSS to the HTML. Can you help me please?
@hereticstanlyhalo6916
@hereticstanlyhalo6916 5 жыл бұрын
So I have the jquery before the parallax and the parallax says "Jquery is not defined"
@tonnynho2004
@tonnynho2004 2 жыл бұрын
THANKS THANKS THANKS THANKS
@jv18creator
@jv18creator 4 жыл бұрын
awesome
@ieatwebsites
@ieatwebsites 4 жыл бұрын
Thanks!
@nilparody1096
@nilparody1096 5 жыл бұрын
since writing parallax effect by ourselves is very easy, why do we need to import a plugin parallax js file?
@jesse8206
@jesse8206 6 жыл бұрын
how to do that image url ?
@hirameer557
@hirameer557 6 жыл бұрын
can you jst help me how to add image along with txt as u do ?? I really find it difficult to adjust image in those sections....
@hongleanghuor5773
@hongleanghuor5773 6 жыл бұрын
Hello I've a problem that parallax background is stack. it not scroll.
@saltanatnazarova3242
@saltanatnazarova3242 4 жыл бұрын
please help.Why my img does not appear?
@malindasmith855
@malindasmith855 6 жыл бұрын
This was just what I needed. Thank you.
@kingwindie
@kingwindie 7 жыл бұрын
Short, sweet, simple great video 👌
@ieatwebsites
@ieatwebsites 7 жыл бұрын
+kingwindie Thank You!! 😊
@prasannakusugal4333
@prasannakusugal4333 4 жыл бұрын
its really osm tq for this video .....keep posting more
@AndyKrayenhagen
@AndyKrayenhagen 5 жыл бұрын
I'm kinda new to this, so what is making it switch the images? I only saw you put in image0.jpeg. Does it automatically use all of the images in that containing folder? FYI, the last time I did HTML was 1997, so I'm a bit behind.
@SnizzleDizzle
@SnizzleDizzle 4 жыл бұрын
How do you make it bigger? Like how the website has it.
@Roberto-rk9kg
@Roberto-rk9kg 5 жыл бұрын
Thank you!! you are awesome bro!
@daniel.farias
@daniel.farias 6 жыл бұрын
it's really cool. Very useful. Your channel is great.
@ieatwebsites
@ieatwebsites 6 жыл бұрын
Thank you Daniel! :
@JustinTheVlogger
@JustinTheVlogger 4 жыл бұрын
How can I add another photo?
@phanikumar7183
@phanikumar7183 6 жыл бұрын
How can we perform the same scroll along right instead of down
@jenswaelkens5898
@jenswaelkens5898 5 жыл бұрын
thc for the vid but when i do this for a picture on top my pic doesnt center any tips
@TurboNrrdFPV
@TurboNrrdFPV 3 жыл бұрын
THANK YOU!!!!!!!!!!
@ieatwebsites
@ieatwebsites 3 жыл бұрын
You welcome
@ssali99
@ssali99 4 жыл бұрын
thanx buddy
@ieatwebsites
@ieatwebsites 4 жыл бұрын
You welcome!
@tapasjaiswal6968
@tapasjaiswal6968 4 жыл бұрын
Sir Images does not show I follow everything whatever you done in video
@maxwellsempai
@maxwellsempai 3 жыл бұрын
how to do responsive this page ?
@gianniskim
@gianniskim 4 жыл бұрын
how can i add it on WP? via js?
@inferno0350
@inferno0350 5 жыл бұрын
You are the best. Thank you for the video(Ты лучший. Спасибо, за видео);
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 944 М.
The problems with viewport units
13:23
Kevin Powell
Рет қаралды 359 М.
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 36 МЛН
My Cheetos🍕PIZZA #cooking #shorts
00:43
BANKII
Рет қаралды 28 МЛН
Пройди игру и получи 5 чупа-чупсов (2024)
00:49
Екатерина Ковалева
Рет қаралды 4,1 МЛН
This Simple Trick Makes Your Website 83% Better Looking
10:57
Web Dev Simplified
Рет қаралды 388 М.
Simple Pure CSS Parallax Scroll Tutorial
26:36
Developer Filip
Рет қаралды 69 М.
Using CSS custom properties like this is a waste
16:12
Kevin Powell
Рет қаралды 168 М.
It's time for change, it's time for Linux.
10:53
DankPods
Рет қаралды 335 М.
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Hyperplexed
Рет қаралды 1,7 МЛН
Please stop using px for font-size.
15:18
Coder Coder
Рет қаралды 138 М.
The Secret Science of Perfect Spacing
9:40
Chainlift
Рет қаралды 406 М.
The Parallax Effect // 5 Minute WebDev Project
5:01
Fireship
Рет қаралды 616 М.
Learn CSS Animations In 20 Minutes - For Beginners
21:22
Slaying The Dragon
Рет қаралды 1 МЛН
هذه الحلوى قد تقتلني 😱🍬
00:22
Cool Tool SHORTS Arabic
Рет қаралды 36 МЛН