Тёмный

Create a Split Landing Page With HTML, CSS & JS 

Traversy Media
Подписаться 2,3 млн
Просмотров 136 тыс.
50% 1

Create a split animated landing page using HTML5, CSS3 transitions and a bit of vanilla JavaScript. We will also be using CSS variables aka custom properties.
CODE: Code for this project
codepen.io/bradtraversy/pen/d...
💖 BECOME A PATRON: Show support & get perks!
/ traversymedia
VISIT MY WEBISTE: Check Out My Udemy Courses
www.traversymedia.com
FOLLOW TRAVERSY MEDIA:
/ traversymedia
/ traversymedia
/ traversymedia
/ discord

Наука

Опубликовано:

 

2 янв 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 205   
@tabancosmos2235
@tabancosmos2235 6 лет назад
Without you new years won't be right. Thanks.
@DazzyDude00
@DazzyDude00 6 лет назад
Great tut, dude :) Another option is to use Grid & Flexbox, if anyone is interested: .grid-container { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 100vh; } .left, .right { display: flex; justify-content: center; align-items: center; }
@mihailchigorin2498
@mihailchigorin2498 6 лет назад
Don't forget flex-direction: column;
@DazzyDude00
@DazzyDude00 6 лет назад
No need! because its 100VH
@najmussakibsaycot7454
@najmussakibsaycot7454 6 лет назад
Everytime i learn something new from your tutorials does help me a lot... I wish you Happy New Year 2018.
@TraversyMedia
@TraversyMedia 6 лет назад
That's awesome. Thank you, same to you :)
@mariolaporte3429
@mariolaporte3429 5 лет назад
Most excellent tut. Loving the amount of really talented coders on YT that give really well put together tuts that help noobies understand 100%
@zalodias123
@zalodias123 4 года назад
I really appreciate that you don't cut out those little spelling mistakes, so we can also see a bit of your debugging process! And it also makes me feel better when I spend 30 minutes or more looking for a single character mistake ahah
@MightyArts
@MightyArts 6 лет назад
Hey, just stopping by to say thanks for the quality content that you create Brad, you got me into web development, and I love it ! One thing that I'd like to note for this particular video, which worked pretty well for me, is that, instead of using "position:absolute" and to center all the "items" in the split one by one using precentages, I'd suggest to use "display: flex, flex-direction: column; justify-content: center, align-items: center", and that way, no matter how big the browser window is, they remain at the CENTER of their container (in this case, the split) :D Found it more useful that way, while I was making a split landing page where I had a title, button(link) and a logo underneath, so I had to use a lot of positioning while using absolute, and with display:flex, is way easier ! Keep up the good work, cheers !
@alxndrdg8
@alxndrdg8 6 лет назад
Good video to begin the new year. Simple yet involving all the essentials.
@rishabsharma5307
@rishabsharma5307 5 лет назад
From learning through your channel i just made this page on my own using flexbox . Thank you.
@MohamedZalahi
@MohamedZalahi 6 лет назад
This is what i expected, thank you so much brad
@michalpaszkiewicz
@michalpaszkiewicz 6 лет назад
Awesome work! Just looked for something like this!
@reginaldosano6593
@reginaldosano6593 6 лет назад
I will make my Patreon donation to you soon . Im grateful for your tutorials. Great teacher you are!
@LeoPacheco87
@LeoPacheco87 6 лет назад
Amazing How fluid you code, hope to reach that level soon! Congratulations!
@troybryantIII
@troybryantIII 6 лет назад
this is sweet. I used your client panel app from udemy and extended that in to a full functional app for myself. Will take this and add this add the landing page and use some angular transitions also. Thanks a ton. Working on another app and using the mean stack but this is a great idea for a landing page as soon as I finish I'll post a link.
@engsiyad
@engsiyad 6 лет назад
The best web development teacher i have ever seen.
@josephperezcodes1173
@josephperezcodes1173 6 лет назад
Brad this was the first project I ever did that used JS. I loved this Tutorial so much I got both your JS and Angular Udemy course and I hope to finish the JS course this week. Thanks from a CodeNewb.
@Braden_Buchanan
@Braden_Buchanan 6 лет назад
Thank you for all the great informative videos Brad!
@GCom0
@GCom0 6 лет назад
Thank you so much Brad! You really inspire me to become a web-developer. Greetings from Guatemala :)
@hirephpdevelopers3840
@hirephpdevelopers3840 6 лет назад
I have learned a lot from this video. Thanks Brad.
@ITSH4WK
@ITSH4WK 6 лет назад
Great stuff as always, Brad. Love the idea. To anyone following this, consider using a click event, rather than the hover pseudo-class, for mobile devices with smaller screens.
@jegedeayodeji3306
@jegedeayodeji3306 6 лет назад
Happy New Year Brad.Thanks for this
@ClassicCartoonsNL
@ClassicCartoonsNL 6 лет назад
Thank you for these amazing videos, Traversy Media. Keep it up! Forever grateful!
@awesomebank4718
@awesomebank4718 4 года назад
Hi there 🖐️, Can you please view my video and give me some suggetion ✌️ Title: Creative Menu Hover Effect using HTML & CSS Here is the link: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-OaelIdtDPz4.html
@luissantiago7978
@luissantiago7978 6 лет назад
Really cool front end code! I'm going to add on to this to see how far I can go with it and share.
@francissicnarf4707
@francissicnarf4707 6 лет назад
18:10 you can select the text using select all (CTRL + A)
@sdhpCH
@sdhpCH 6 лет назад
Very nice design and idea. Tried it on an Ipad mini - if you tab on the button the field moves and there is no way to get it back to work but refresh. Just something to keep in mind for those that want to use this idea for themselves. Love your work, Brad, btw.
@sandrasasi5305
@sandrasasi5305 6 лет назад
Did you find any solution for that
@d3struction61
@d3struction61 5 лет назад
For all of you wondering why he used JS instead of just using :hover in order to resize the divs when hovering over one of them, That's because :hover doesn't allow you to change other elements, unless that element that you want to change comes after in the HTML. So you could make it work for the first div in the HTML, and change the other div that comes after it, but not the other way around. Which means it would only work for one div, either "split right" or "split left", whichever comes first in the HTML. Therefore the only solution is to use JS and play with the classes like he did.
@MenAtWorkMedia22
@MenAtWorkMedia22 6 лет назад
Thanks, Brad!! You are the man!!
@opheliaaaaaaaa
@opheliaaaaaaaa 5 лет назад
thank you ...your tutorial really helping me solve my problem
@sm1ley732
@sm1ley732 5 лет назад
simple and professional, i like that :D
@wynnhtutkyaw3283
@wynnhtutkyaw3283 6 лет назад
really love your tutorials Thanks a lot
@carljustinemosquida9614
@carljustinemosquida9614 6 лет назад
very nice tuturial...i hope someday i could be someone like you
@moheuddinsehab
@moheuddinsehab 5 лет назад
love the design
@yevgenylevin8381
@yevgenylevin8381 6 лет назад
Great stuff Brad ;) Happy to learning from you !!! Keep it up ,man ;)
@codelikeivan5355
@codelikeivan5355 6 лет назад
Cant wait to get to your level
@guylemay1471
@guylemay1471 5 лет назад
WOW! So much goodies in here ...thank you! Your CSS Kung Fu sure delivers a heck-of-a-punch - ouch, ouch... !
@andragugu8544
@andragugu8544 6 лет назад
Thank you for the video and Happy New Year!
@TraversyMedia
@TraversyMedia 6 лет назад
Happy 2018!
@priyaranjan1733
@priyaranjan1733 6 лет назад
Happy New Year Brad! 💕
@smsander4029
@smsander4029 4 года назад
This is awesome, but how would you add content into the left without it blowing out the code???
@francissicnarf4707
@francissicnarf4707 6 лет назад
thanks for this tutorial .. i've uploaded it on my github page .. i'm only using vim but also with light-server npm package to refresh the browser every time I save
@pavanjadhaw
@pavanjadhaw 6 лет назад
Looks awesome.
@kornelgeczi4589
@kornelgeczi4589 6 лет назад
You are the best youtuber!!!
@vijayanira
@vijayanira 6 лет назад
Dear Brad, thanks for the video. One suggestion! It could be better if the output on the browser can be seen on the right side while typing the code. So that we can see the result instantly what each line of CSS is doing. Please do it.
@omerbilalcan
@omerbilalcan 6 лет назад
Thank you dear Colleague for this tutorial. And i wish you happy new year 2018. Greetings from Istanbul.
@ashrafulfuad2967
@ashrafulfuad2967 5 лет назад
Thank you so much traversy media
@hatilmatogan
@hatilmatogan 6 лет назад
Thank u Brad great video
@robertrydlewski9538
@robertrydlewski9538 5 лет назад
Thanks for the video and spreading knowledge :)
@TiredLoon
@TiredLoon 2 года назад
spectacular tutorial
@digihammer258
@digihammer258 5 лет назад
This was amazing!
@mithu26491
@mithu26491 6 лет назад
Thanks a lot, Brad. You are my hero. How about a ".htaccess tutorial" ?
@harryadneyinternetservices
@harryadneyinternetservices 6 лет назад
Nice work.
@eypbal
@eypbal 6 лет назад
perfect.. thanks..
@kamaboko1
@kamaboko1 6 лет назад
Great tut
@mattmooney8625
@mattmooney8625 6 лет назад
Brad do you ever use a CSS Reset/Normalize? Thank you for another great tutorial!
@warchild2726
@warchild2726 6 лет назад
on small screens i made them top and bottom so they will not cover each other, anyways really helpfull video and happy new year!
@tonmoygaming7663
@tonmoygaming7663 6 лет назад
You are great man.. 😀
@hanzlaahabib
@hanzlaahabib 6 лет назад
ERROR: Parsing error: The keyword 'const' is reserved const left = document.querySelector('.left');
@Dwesk
@Dwesk 6 лет назад
didn't know you can do things like the 4:10 stuff with visual code, fuck I need to watch more of this stuff. Probably a much stronger tool than Sublime.
@LesPwalus
@LesPwalus 6 лет назад
you can do it aswell on ST3! just add the Emmet Package. :) This is it which allows you to do the same as he does. Visual possesses this plugin by nature
@Dwesk
@Dwesk 6 лет назад
Yeah I actually kinda realized that doing the tutorial myself. Makes a lot of sense, thanks for the info.
@arthurprather6720
@arthurprather6720 6 лет назад
You could type... html:5 too.
@luissantiago7978
@luissantiago7978 6 лет назад
Yea it's the Emmet plugin.
@thepiratedeveloper8807
@thepiratedeveloper8807 6 лет назад
That's emmet, a lot of popular text editors supports this plugin.
@Albshr77
@Albshr77 6 лет назад
Thank you
@gaos94
@gaos94 6 лет назад
Could you make a JS stepper form tutorial?
@jasonpauldegraaf
@jasonpauldegraaf 5 лет назад
Brad, would you recommend the Normalize.css for media queries now? Or another way to not manually enter device sizes on the css code?
@AbhishekKumar-mq1tt
@AbhishekKumar-mq1tt 6 лет назад
Thank u for this awesome video and happy new year .can u make full stack wep app with vuejs , express and mongodb
@davidjafary
@davidjafary 6 лет назад
Thank you so much
@theparamountrocket
@theparamountrocket 6 лет назад
Good Stuff man!
@tomvito
@tomvito 6 лет назад
Awesome :) Thanks!
@awesomebank4718
@awesomebank4718 4 года назад
Hi there 🖐️, Can you please view my video and give me some suggetion ✌️ Title: Creative Menu Hover Effect using HTML & CSS Here is the link: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-OaelIdtDPz4.html
@mohammadhoque9282
@mohammadhoque9282 6 лет назад
Always you are awesome sir!
@TraversyMedia
@TraversyMedia 6 лет назад
Thanks :)
@mauricio231
@mauricio231 6 лет назад
How do you get the color box to appear next to your css code? I use the pigment package but i prefer the the color box next to your code instead of the background highlighting.
@SethWilson
@SethWilson 6 лет назад
Awesome!
@phichau90
@phichau90 5 лет назад
Hey traversy just wondering did u add on more pages or was that the finishing product
@michaelehalsey
@michaelehalsey 6 лет назад
Thanks for the videos. The source code linked on this page is missing a couple lines to link the js and CSS files to the HTML file in case you wanted to update it.
@volodymyrselevertov
@volodymyrselevertov 6 лет назад
thx, Brad!
@adityatilyalkar719
@adityatilyalkar719 6 лет назад
Great video..I am not able to understand how adding z-index fades the other section. Could you please explain that?
@weshuiz1325
@weshuiz1325 6 лет назад
Traversy Media will you ever do a tutorial on css with the difecault items like range number checkbox and radio inputs etc
@sayandutta2669
@sayandutta2669 5 лет назад
AWESOME 👍👍
@AshwinChandarR
@AshwinChandarR 6 лет назад
Awesome! :)
@arisweedler4703
@arisweedler4703 6 лет назад
Hey, Brad! I followed your tutorial and made this: arisweedler.github.io/traversy-tutorials/split-landing-page/ It's contents are kinda an inside joke with my friends, but I wanted to share it with you anyway. Your creativity in CSS is always very inspiring, and I appreciate the high quality content. Thanks again, you're the man!
@Geekstocks
@Geekstocks 6 лет назад
I don't know what I like better - your implementation of this tut or the soccer video you linked to! LOL Thanks man!
@TheJacklwilliams
@TheJacklwilliams 2 года назад
And I arrive, four years later, 7pm cst, exhausted from a BRUTAL week. I can't pay attention to Brad, re-started the tut 3 times, stopping. Launched your page, and yeah, cracking up. I've no inside on it yet somehow, I felt it. Epic sir. Epic. I say this as I realize, I'm done, stick a fork in me for this fourteen hour period. I'm done, just done.
@arisweedler4703
@arisweedler4703 2 года назад
@@TheJacklwilliams Bro.. XD
@BMikel
@BMikel 6 лет назад
Please help me understand. I have a custom.js file which is all in a jQuery code. Can i add vanilla JavaScript to my custom jQuery code? Or should i create new js file and inklude it at the bottom of my html page? thanx!
@abhipatel8327
@abhipatel8327 5 лет назад
When I use your code and run, the animation works. But after closing the page, if I re-run it again, there is no animation while hovering the mouse.
@dobelem
@dobelem 5 лет назад
AWSOME man
@salman4430
@salman4430 5 лет назад
Can you do a tutorial on Canvas element??? Please! :)
@antwarior
@antwarior 4 года назад
so im coding in notepad++ and for some reason my javascript not working in the css folder at all and i cant understand the why, non of the var or any refference to my jscript folder is rendering in my css page, they dont even high light like it does here, only thing lit up in my js file was the const and the mouseleave and mouse enter refferences, everything else are not highlight besides those, im nose bleed here
@TitoPaldoGaming
@TitoPaldoGaming 6 лет назад
Is it ok if i use it for Sign In and Sign Up?
@teguhwjx
@teguhwjx 6 лет назад
i don't know what happen but i cant access my img folder within css background: url() center center no-repeat but when i try to use https image it's show up ...ps : im just started learning things
@synthaistudio
@synthaistudio 6 лет назад
How would you add some navbar to this? Are you willing to share with us? Thanks
@andreygordeev6915
@andreygordeev6915 5 лет назад
Greetings from Siberia! Thank u so much for the video! My style.css and main.js files aren't loading on VS Code liveserver. I use Google Chrome and when in Console-Network, these files are blocked (Status: blocked: other) These resources are local and Chrome isn't allowed to load them. What might be the reason?
@mohammedishaan2099
@mohammedishaan2099 5 лет назад
Hi, how about the mobile devices we don't have hover for mobile devices right. is there an alternative for that?
@Moximaxius
@Moximaxius 5 лет назад
Is it possible to make something like this work of word press?
@sundards9613
@sundards9613 6 лет назад
Thank u so much.....):
@consolecoast7897
@consolecoast7897 4 года назад
Noticed on mobile when click a button on one side you can't click the button on the other side making the user having to refresh the page if they clicked the wrong button?
@panagiotischatzoglou
@panagiotischatzoglou 3 года назад
does anyone have any advice on how i can turn them vertically so one is on top and one at the bottom, when the screen size gets too small?
@Dinus2009
@Dinus2009 6 лет назад
Good tutorial! But for my doesn't work with ie11. With the other browser no problem. Help my please
@vinibp
@vinibp 6 лет назад
Brad I would like to know what is your point about WebAssembly ? How It can be used in webapps and if it can be really worth for a webdeveloper to learn it. Thanks Greatings from your best Brazilian fan Vinicius
@letmecodefrontend3653
@letmecodefrontend3653 6 лет назад
You could have done the whole thing a lot easier and with less code by just using flexbox and flexible width for the containers, then override the percentages on hover. You don't even need JavaScript for this.
@hanzlaahabib
@hanzlaahabib 6 лет назад
please respond why i am getting ESlint error even i can use left in js because it says reserve etc i have copied your same code but it still says same :(
@cassimmushi7795
@cassimmushi7795 6 лет назад
first to view first to comment. Thank u Brad for The Video
@sandrasasi5305
@sandrasasi5305 6 лет назад
HI, does this page work in phone , tab or anything without cursor. if do how so????Please help
@JariOrSomething
@JariOrSomething 6 лет назад
I have a basic question. What do you think about visual studio code? It looks pretty good, i might try it :)
@infotakeaway2641
@infotakeaway2641 6 лет назад
lol
@rahuldubey7191
@rahuldubey7191 6 лет назад
document.querySelector in the js file is returning null value . what should i do?
@kavyav4788
@kavyav4788 3 года назад
is there any way i could use a dragging option in run time
@pratikpatil4880
@pratikpatil4880 6 лет назад
how to add esversion: 6 in visual code...jsHint gives me the error at const and => (arrow function) help me please
@chamithweerasinghe889
@chamithweerasinghe889 6 лет назад
Sr. can i use this as a nav bar. BTW Happy New Year!
@cemyidirim
@cemyidirim Год назад
Can you re-encode horizontally for mobile view.
@vanekjalba5882
@vanekjalba5882 6 лет назад
Maybe you have a start template for html/css/js on Github?
Далее
The Importance of Specialization in Coding
7:13
Просмотров 187 тыс.
Pure CSS Hamburger Menu & Overlay
35:47
Просмотров 397 тыс.
I Built 100 Houses And Gave Them Away!
09:36
Просмотров 59 млн
ChatGPT is destroying my math exams
11:43
Просмотров 765
Create a clean, modern navigation with HTML & CSS
25:17
Awesome Split Screen Slider Using CSS3 & JavaScript
33:56
Create a horizontal media scroller with CSS
26:13
Просмотров 283 тыс.
Responsive CSS Grid Tutorial
17:14
Просмотров 813 тыс.
HTML & CSS Easy Elegant Landing Page With Blur Effect
34:43
CSS Anchor Is The Best New CSS Feature Since Flexbox
15:39
Will the battery emit smoke if it rotates rapidly?
0:11