Pure CSS Parallax Scrolling | No JavaScript | HTML & CSS

  Рет қаралды 728,027

Codegrid

Codegrid

6 жыл бұрын

Source Code: bit.ly/2UdEoCs
Discord: / discord
Instagram : / codegridweb
Twitter : / codegridweb
Thanks For Watching!

Пікірлер: 594
@codegrid
@codegrid 2 жыл бұрын
Join discord here: discord.com/invite/8jf6bkqSGF
@sergepacomekeayeni5385
@sergepacomekeayeni5385 Жыл бұрын
Jdjjd
@Deepak-zb4bx
@Deepak-zb4bx Жыл бұрын
Bro mujhe bhi coding sikha de(as a mentor)
@user-uc1ru9pl1y
@user-uc1ru9pl1y 6 жыл бұрын
html{ height: 100%; overflow: hidden; } body{ color: #fff; margin: 0; padding: 0; perspective: 1px; transform-style: preserve-3d; height: 100%; overflow-y: scroll; overflow-x: hidden; font-family: "Luna"; } header{ box-sizing: border-box; min-height: 100vh; padding: 30vw 0 5vw; position: relative; transform-style: inherit; width: 100vw; } header h1 { margin-top: -100px; } header, header:before{ background: 50% 50% / cover; } header::before{ bottom: 0; content: ""; left: 0; position: absolute; right: 0; top: 0; display: block; background-image: url(1.jpg); background-size: cover; transform-origin: center center 0; transform: translateZ(-1px) scale(2); z-index: -1; min-height: 100vh; } header * { font-weight: normal; letter-spacing: 0.2em; text-align: center; margin: 0; padding: 1em 0; }
@mikkelpedersen785
@mikkelpedersen785 6 жыл бұрын
fucking love you
@pressrepeat2000
@pressrepeat2000 5 жыл бұрын
Bro!!!!! 👏👏👏
@pritammehta7770
@pritammehta7770 5 жыл бұрын
you can copy code from here. But please play full video twice. because chennel also need support.
@nishanttinturkar2501
@nishanttinturkar2501 5 жыл бұрын
You are god...
@goal_diggers7
@goal_diggers7 5 жыл бұрын
📝If you want to add something else after picture you will add html code in header _________________ If it help you put like👍 and write a comment. ________________ 📝And in css code add __________________ #exm { position: absolute; background: #fff; margin-top: 200px; height: 100%; }
@johnyonardpauly5601
@johnyonardpauly5601 6 жыл бұрын
This is more enjoyable when you write codes while watching this video :) Brilliant tutorial for me as a junior web developer, thank you!
@StarChildInABubble
@StarChildInABubble 5 жыл бұрын
CSS3 has become so powerful and I LOVE IT!
@Somfic
@Somfic 6 жыл бұрын
Activate your windows
@codegrid
@codegrid 6 жыл бұрын
+Somfic❤
@PegassiInfernus
@PegassiInfernus 6 жыл бұрын
KMSpico.
@chiragchatwani9124
@chiragchatwani9124 6 жыл бұрын
Better Idea use Linux instead
@TimeoutMegagameplays
@TimeoutMegagameplays 6 жыл бұрын
Lol
@thomiadityaalhakiim5831
@thomiadityaalhakiim5831 5 жыл бұрын
LOL
@0001-exe
@0001-exe 3 жыл бұрын
OMYGOSH I'VE BEEN LOOKING FOR THIS THANK YOU!!
@LivingLaconian
@LivingLaconian 5 жыл бұрын
Great tutorial and taste in music. Clozee is so sweet!!
@cassettesrewind9966
@cassettesrewind9966 6 жыл бұрын
Can u please tell me how can I add sticky nav bar ( from ur sticky nav video) in this parallax effect... I tried to merge the code but the nav bar is not becoming sticky. Please help me
@rompecabeza100
@rompecabeza100 6 жыл бұрын
De los mejores videos que he visto en mucho tiempo, sigue subiendo vídeos de este tipo porfavor.
@awds328
@awds328 5 жыл бұрын
sabes como hacer para poner contenido en la parte de abajo? al principio del video sale texto puesto pero luego no explica como
@somil6721
@somil6721 6 жыл бұрын
awesome tutorial ,by the way, I like the background music
@user-rj6ro3mp1p
@user-rj6ro3mp1p 6 жыл бұрын
Это было круто! Спасибо, дружище!
@GodOfGangsters
@GodOfGangsters 6 жыл бұрын
How to add paragraph lines in bottom, as you showed at 1st
@forerunnerdev1140
@forerunnerdev1140 2 жыл бұрын
The transform - translateZ / scale is a neat trick - very nicely done!
@aimeemclernon1492
@aimeemclernon1492 4 жыл бұрын
THANK YOU! first code I could actually get working on my site!
@matugan
@matugan 4 жыл бұрын
Lmao “Activate you’re windows” same as me)))
@dmjake
@dmjake 4 жыл бұрын
This is Beautiful! Thank you!
@the1roberge
@the1roberge 6 жыл бұрын
How do you put text in the whitespace after the effect? I have been trying using footers but they move when scrolling...
@marcogiordano2935
@marcogiordano2935 4 жыл бұрын
Same
@rupammankar3410
@rupammankar3410 4 жыл бұрын
kzfaq.info/get/bejne/Y8WKi5p1sNqadac.html
@gschiavon
@gschiavon 4 жыл бұрын
Hi thanks for the tutorial; is there a way to change the background image using Liquid? Trying to apply this using a Jekyll layout
@euniceharkness9351
@euniceharkness9351 5 жыл бұрын
Thanks for the helpful tutorial. I have never used CSS before so will need to learn it. Until then is there a way to create parallax scrolling in CSS in Design View?
@mikzz2531
@mikzz2531 6 жыл бұрын
how did you put the color of your tag in blue? My atom is red.
@nicholas9195
@nicholas9195 5 жыл бұрын
friggin sick intro!!
@aditya-8136
@aditya-8136 6 жыл бұрын
i made this perfectly, but the issue started when i wanted to put a div with isometric cards below this, in the same file. the isometric cards just get out of shape. how do i make them both work on the same page?
@melindachang128
@melindachang128 6 жыл бұрын
I've been having an issue where any text below the header is still drifting upwards during scrolling, so there's clearly some code-tweaking I need to work on before I continue with the website.
@filipcipagauta2799
@filipcipagauta2799 4 жыл бұрын
El efecto del comienzo del video es más notorio que el que quedó al final, gracias saludos
@AgeofReason
@AgeofReason 4 жыл бұрын
Good tips. I dont like themes that use that, but it's neat work. I enjoy working with as much HTML as possible. Always have.
@fbujna4391
@fbujna4391 5 жыл бұрын
How to add some text after this effect because the text scroll with the header so i can't add other text in the bottom of the header
@aldotugasumb2366
@aldotugasumb2366 6 жыл бұрын
Thank for sharing this kind of thing,hope god blesses you .
@squeecy9965
@squeecy9965 4 жыл бұрын
anyone know how I would continue the parallax with another picture, for reference look at the end of the video where he shows what he made 5:00 in the white area I am trying to continue the scroll with another picture, and so on, any help?
@orakimedia
@orakimedia 4 жыл бұрын
what does the header, header:before attribute-address address/ which function has the header:before (shouldn't it also be"header::before"?)?
@ericbachmeier5
@ericbachmeier5 5 жыл бұрын
What effect did you use for the video intro?
@arhamaneeq3685
@arhamaneeq3685 5 жыл бұрын
What theme are you using for Atom?
@sakuratakata4992
@sakuratakata4992 4 жыл бұрын
hello, how can you put a hyperlink in there ? i tried combining them but doesnt work?
@fernandapanda
@fernandapanda 4 жыл бұрын
I loved the introduction! can you teach how you did this glitch/computer/code effect?
@abulfazlhaidary4625
@abulfazlhaidary4625 5 жыл бұрын
Nice effect Nice background music Good stuf.
@SereF99102
@SereF99102 6 жыл бұрын
Amazing. I've to try this
@Ryz3FN
@Ryz3FN 4 жыл бұрын
I cant only remove the text, the background will also delete, i just want a black background at the bottom how to fix.
@alanbarrientos5236
@alanbarrientos5236 5 жыл бұрын
In the intro version works, in the final version only works the text, the image don't has the parallax effect.
@nutanpanta9238
@nutanpanta9238 4 жыл бұрын
for that in img in the css part use background-attachment:fixed
@fexpexanthony559
@fexpexanthony559 6 жыл бұрын
I really like this style alot but I'm confused on the part on where he got the img and lorem ipsum I don't see it on html file?
@user-pg5kn5mb6y
@user-pg5kn5mb6y 3 жыл бұрын
Thank you for instructing and sharing!
@johankjellin1598
@johankjellin1598 4 жыл бұрын
I got this to work, great video thank you
@thebrasilparadise
@thebrasilparadise 6 жыл бұрын
I put a section with a div underneath and styled it with z-index:2 . Why does it go under the image when I scroll ?
@undefined5339
@undefined5339 6 жыл бұрын
Your level of Front End is awesome! Good Video... Like and new suscriber, waited more.
@charlyRoot
@charlyRoot 5 жыл бұрын
Thanks dude! I love the entitlement displayed in the comments. I thank you for taking your time to share your knowledge to all of us for free. I hope YT gives you a little bit of ROI of your time.
@Jose-oj7vt
@Jose-oj7vt 6 жыл бұрын
what theme are you using? i really want to get the teal element color on my text editor!
@bySterling
@bySterling 4 жыл бұрын
Parallax has been my single fav site design flavor for years but I’m not a coder. Where do we get this CSS and is it mobile friendly?
@sastrakancana
@sastrakancana 4 жыл бұрын
thank you very much. it comes in handy
@snehabhapkar7620
@snehabhapkar7620 5 жыл бұрын
Hey, My page is not scrolling down with the same code. Please if someone can help that would be great.Thank you so much.
@balthzarofate1342
@balthzarofate1342 5 жыл бұрын
mate you are the best!
@keithbacalso9433
@keithbacalso9433 5 жыл бұрын
Hi Codegrid im loving your vids!! keep it up!! but I have 1 question what you use for coding? Sublime?
@lanterchannel1437
@lanterchannel1437 5 жыл бұрын
No, it is my favourite programme for coding : Visual Studio Code ))))
@davidrosenberger7630
@davidrosenberger7630 5 жыл бұрын
How can you add a sticky nav to this? I have already built the complete page and want to animate it with this....
@rs7076
@rs7076 2 жыл бұрын
Hi thanks for that great tutorial! Is anyone else having the problem where when they scroll a white square appears in the background image? Thanks
@hossainratul9221
@hossainratul9221 6 жыл бұрын
can you give the background image link ...??
@milanbjelic5356
@milanbjelic5356 6 жыл бұрын
Does anyone have same problem as me? I get white space left of an header image. I found that perspective in css is doing that but don't know how to fix it. It shows when I scroll left/right.
@aleballee
@aleballee 6 жыл бұрын
Love it!
@kanekirei1842
@kanekirei1842 6 жыл бұрын
my visual studio IDE is showing an error in the stylesheet part here ..... header * {
@Simone-ft2cg
@Simone-ft2cg 5 жыл бұрын
Great job! What is that text editor theme?
@Furniturefosters
@Furniturefosters 6 жыл бұрын
Any tips on how to add another section of content below that would scroll OVER the parallax landing page? I️’m trying to create a continuous scroll style page with parallax images separated by banners with text and video. The problem I️m having is the content flows behind the landing image. I️ thought Z-index would work but it doesn’t seem to do the trick.
@martiarnauortega813
@martiarnauortega813 6 жыл бұрын
Z-index only works if the element is positioned, so you'll have to also add the property position: relative
@DavidElstob73
@DavidElstob73 4 жыл бұрын
Very handy for my parallax site. :)
@cahill_dave
@cahill_dave 6 жыл бұрын
Is this method compatible on mobile? I’ve been using a hack method of position:fixed inside an absolute container on my website but this seems way better.
@PegassiInfernus
@PegassiInfernus 6 жыл бұрын
How do You adjust the sizes according to the image used as background...? Seems to behave weirdly on MS Edge...
@sarathsanthar3560
@sarathsanthar3560 6 жыл бұрын
try it in another browser like Firefox or chrome. Sometimes, it happens to me as well.
@mastercode7851
@mastercode7851 5 жыл бұрын
bro please what font you are using in vscode ??????????/
@vinicio5735
@vinicio5735 5 жыл бұрын
Como deixar o texto parado igual no início do vídeo?
@10Zenil
@10Zenil 5 жыл бұрын
what font did you use in atom text editor?
@robertdamian4648
@robertdamian4648 5 жыл бұрын
How do you make text go over image? At me the text is going behind it and the text is white!!
@iEcosanHD
@iEcosanHD 6 жыл бұрын
I really hope you reply. I can't make a fixed nav bar on top. Nothing can be fixed because of the perspective thing covering the whole body... what should I do?
@sergiolandaeta188
@sergiolandaeta188 6 жыл бұрын
im having the same issue, everything i had rolls as the tittle effect
@SomebodyOutTh3re
@SomebodyOutTh3re 6 жыл бұрын
Your css level is so good :o
@mina_ashraf
@mina_ashraf 6 жыл бұрын
please can you make another video explaining each step and its function or effect on the html. your work is awesome but we came to learn and if we found this here we would all support you by subscribing, liking and even by sending money on patreon. thank you
@Simone-ft2cg
@Simone-ft2cg 5 жыл бұрын
Great job! Does it work in mobile version?
@orakimedia
@orakimedia 4 жыл бұрын
for some reason it just scrolls... as it didnt work i even typed your code letter by letter but even after that it still didnt work correctly..?
@keyjeyelpi
@keyjeyelpi 4 жыл бұрын
How can I make add the blur filter on?
@bruh-qi7ue
@bruh-qi7ue 6 жыл бұрын
how do you make the selection after that not move with it?
@woquendoG
@woquendoG 5 жыл бұрын
just delete preserve 3d from body
@juandanielquinonestorres2521
@juandanielquinonestorres2521 6 жыл бұрын
al colocar el heading no lo reconoce y algunas propiedades que puedo hacer, es normal?
@fantast2568
@fantast2568 5 жыл бұрын
Great job! thanks
@ampersand2251
@ampersand2251 5 жыл бұрын
Can somebody help me? The parallax works but I don't know how to insert the lorem ipsum part.
@vishal4338
@vishal4338 5 жыл бұрын
Add another division after the use width:100% give it a background-color: and write all that you need in a paragraph
@Pixel_Recap
@Pixel_Recap 2 жыл бұрын
My very fist html css web project . I still remember how i made with lot of trail and errors
@Kenroy75
@Kenroy75 6 жыл бұрын
Would be nice to see the effect of each property in real time. A thought for future videos
@hoo1320
@hoo1320 5 жыл бұрын
Cool video🤩 Can you please tell me what's your picture resolution is it 1920 X 1080
@jayshreesalvi4806
@jayshreesalvi4806 5 жыл бұрын
Music is amazing ♥️
@minelll1976
@minelll1976 6 жыл бұрын
How did you get the 'Lorem...' text downside after the picture? When I try it, the text ist always right after my header....
@zxwolf4641
@zxwolf4641 6 жыл бұрын
Having the same issue : (
6 жыл бұрын
Minelll you can use Sublime Text Editor
@benci2003
@benci2003 5 жыл бұрын
Use the 'z-index' with 'position' in what you want to overlay the image(the 'z-index' value must be greater than 0).
@satishksharma
@satishksharma 5 жыл бұрын
I have created complete parallax effect with demo on github. Link is skwebs.github.io/parallax/
@daldreams
@daldreams 5 жыл бұрын
@@satishksharma AWESOME!! Thank you :)
@maximilianotorres1225
@maximilianotorres1225 5 жыл бұрын
Got a problem, the "overflow-x: hidden;" property does hide the X-scrollbar, but it can still be scrolled using the mousewheel. anybody else with the same issue?
@maximilianotorres1225
@maximilianotorres1225 5 жыл бұрын
Cause there is an empty space to the right and have no idea what generates it
@hassanalthaf8561
@hassanalthaf8561 4 жыл бұрын
@@maximilianotorres1225 * { box-sizing: border-box }
@frankkiogora
@frankkiogora 6 жыл бұрын
Good Job and thank you for sharing
@dragonsword1111
@dragonsword1111 5 жыл бұрын
Can you give the code on how you put the descriptions at the bottom.
@susankbaniya2372
@susankbaniya2372 2 жыл бұрын
bhai majaa aagaya....yisme jo majja hai main sabko dena chahata hu
@stealth9043
@stealth9043 2 жыл бұрын
Hey really stuck on this, like is there any way to add an image after the paragraph?
@rupamdey6889
@rupamdey6889 6 жыл бұрын
I like the active windows watermark
@trikortreat123
@trikortreat123 4 жыл бұрын
How do you add another section? Everytime I create a new div or new section it remains on the same landing page. Any help would be much appreciated
@naoo96
@naoo96 4 жыл бұрын
Did you close your tab? ( ) If you forget it'll just add to your first div
@liamcarnahan7438
@liamcarnahan7438 3 жыл бұрын
what Atom UI theme and syntax theme are you using?
@XoLucyna
@XoLucyna 3 жыл бұрын
really helpful tutorial. But can i pls know wut is the font ur using i really like it
@D4RKH4CKER
@D4RKH4CKER 5 жыл бұрын
How to make sliding dark main content 0:20 my it's not working
@xlyir4418
@xlyir4418 6 жыл бұрын
How can I add description? Like Lorem Ipsum? It doesn't show in my web page. Please help thank you in advance~
@MrCrashystyle
@MrCrashystyle 6 жыл бұрын
just google 'Lorem Ipsum' and you'll find a lorem ipsum text generating website, copy paste the sample text from there :)
@edtechbymeera
@edtechbymeera 4 жыл бұрын
Do you download music from the soundcloud mobile app?
@manpatel6984
@manpatel6984 3 жыл бұрын
what vs code theme are you using?? plss answer
@planetneine2135
@planetneine2135 6 жыл бұрын
Спасибо, реально запара. Но просто ))
@decland.2111
@decland.2111 3 жыл бұрын
how to add a font in the program?
@hirobregania7240
@hirobregania7240 6 жыл бұрын
What syntax theme are you using?
@dragonsword1111
@dragonsword1111 5 жыл бұрын
How do you put the contents in the bottom?
@chemsounekaka6958
@chemsounekaka6958 4 жыл бұрын
plz tell me what program do you use
@suzaladhikari8709
@suzaladhikari8709 4 жыл бұрын
Which text editor do u use
@victoriahugosson6249
@victoriahugosson6249 6 жыл бұрын
This doesn't seem to work in Safari. Am I making a mistake or is it just not supported?
@kieran2347
@kieran2347 4 жыл бұрын
Which editor is that? Pls lemme know and I loved this website design thanks
CSS Grid Image Gallery | HTML & CSS
5:50
Codegrid
Рет қаралды 38 М.
Simple Pure CSS Parallax Scroll Tutorial
26:36
Developer Filip
Рет қаралды 68 М.
LOVE LETTER - POPPY PLAYTIME CHAPTER 3 | GH'S ANIMATION
00:15
How Many Balloons Does It Take To Fly?
00:18
MrBeast
Рет қаралды 135 МЛН
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 922 М.
Sticky NavBar With JQuery | HTML, CSS & JavaScript
9:50
Codegrid
Рет қаралды 444 М.
Vanilla JavaScript Parallax with just a Few Lines of Code
23:15
DesignCourse
Рет қаралды 100 М.
Parallax Effect using HTML and CSS | No Javascript
7:05
Codehal
Рет қаралды 18 М.
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Hyperplexed
Рет қаралды 1,7 МЛН
The Parallax Effect // 5 Minute WebDev Project
5:01
Fireship
Рет қаралды 603 М.
Subtle, yet Beautiful Scroll Animations
5:04
Beyond Fireship
Рет қаралды 1,6 МЛН
Create a layered parallax effect with HTML & CSS
8:02
Kevin Powell
Рет қаралды 66 М.
CSS Tips And Tricks I Wish I Knew Before
12:12
Lama Dev
Рет қаралды 444 М.
Easiest Pure CSS Parallax Effect Tutorial
5:06
Red Stapler
Рет қаралды 56 М.