Create an Animated Website Intro / Splash Screen With HTML /CSS / JavaScript

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 พ.ย. 2024

ความคิดเห็น • 135

  • @JustPerfectDesigns
    @JustPerfectDesigns 3 ปีที่แล้ว +11

    Hi Conor.
    I've just discovered your channel today and I'd like to let you know that I've found great contents already.
    All your contents are awesome.
    You've been added to my go to list of developers here on youtube :)

    • @ConorBailey
      @ConorBailey  3 ปีที่แล้ว +3

      Thanks so much mate. Just checked you channel out too! Great stuff! Keep up the good work!

  • @theman7050
    @theman7050 2 ปีที่แล้ว +1

    Wonderful! Pure vanilla JS. No libraries. That's talent

  • @juanignaciolopez9248
    @juanignaciolopez9248 2 ปีที่แล้ว

    Man your videos are from another planet. Keep uploading this content. Greetings from Argentina

  • @adrianmorales2732
    @adrianmorales2732 ปีที่แล้ว

    Thank you for the video it was really helpful and very straightforward, keep up the good work !

  • @neomatrix-1
    @neomatrix-1 6 หลายเดือนก่อน

    thank you for the tutorial. it was extremely helpful and I was able to make my personal website cooler

  • @wildsurvivalskills
    @wildsurvivalskills 10 หลายเดือนก่อน

    If I were making a website on WIX, is this something that could be coded in, or is this only for sites that are entirely made from scratch? Thanks, and sorry if that is a dumb question.

    • @ConorBailey
      @ConorBailey  10 หลายเดือนก่อน

      Hi mate. I’ve never used wix so I wouldn’t know to be honest. This should be easy to implement in any no code solution as a splash screen is a pretty popular feature used on a lot of websites. Sorry I can’t be more help.

  • @mickmc1498
    @mickmc1498 7 หลายเดือนก่อน

    remember the old days when video intros / openers where the cool thing to have. Can you do a video or spin on whats the best way! cheers

  • @shameesabdulrahiman8535
    @shameesabdulrahiman8535 ปีที่แล้ว +18

    HTML CODE

    Logo.


    Logo.
    CSS CODE
    *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Courier", monospace;
    }
    header{
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: 80px;
    }
    header h4{
    position: absolute;
    left: 10%;
    bottom: 1rem;
    font-size: 1.6rem;
    }
    /* Splash Screen */
    .intro{
    position: fixed;
    z-index: 1;
    left: 0%;
    top: 0%;
    width: 100%;
    height: 100vh;
    background-color: #2B2D42;
    transition: 1s;
    }
    .logo-header{
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #D9DCD6;
    }
    .logo{
    position: relative;
    display: inline-block;
    bottom: -20px;
    opacity: 0;
    }
    .logo.active{
    bottom: 0;
    opacity: 1;
    transition: ease-in-out 0.5s;
    }
    .logo.fade{
    bottom: 0;
    opacity: 0;
    transition: ease-in-out 0.5s;
    }
    JS CODE
    let intro = document.querySelector('.intro')
    let logo = document.querySelector('.logo-header')
    let logoSpan = document.querySelectorAll('.logo')
    window.addEventListener('DOMContentLoaded',()=>{
    setTimeout(()=>{
    logoSpan.forEach((span,idx) => {
    setTimeout(()=>{
    span.classList.add('active')
    }, (idx+1)*400);
    });
    setTimeout(()=>{
    logoSpan.forEach((span,idx)=>{
    setTimeout(()=>{
    span.classList.remove('active');
    span.classList.add('fade');
    }, (idx+1)*50)
    })
    },2000);
    setTimeout(() => {
    intro.style.top= '-100vh'
    },2300);
    })
    })

    • @xavierpersal258
      @xavierpersal258 ปีที่แล้ว +1

      hahahahahaha you saved us a lot of time thanks so much bro!

  • @A28480
    @A28480 2 ปีที่แล้ว

    Once again a great video, never realised this effect is this easy. Cheers 👌

  • @henrykun1444
    @henrykun1444 3 ปีที่แล้ว +1

    Nice tutorial, you are good on explaining things.

  • @requenz_
    @requenz_ 2 ปีที่แล้ว

    Simple, well explained, nice looking - Perfect!
    Cheers

  • @iXShadow
    @iXShadow 2 ปีที่แล้ว

    Very easy to follow - you are a great instructor. Subbed!

  • @LucasZamboni
    @LucasZamboni ปีที่แล้ว

    Very good Sir, thanks for the video. It will help alot here!

  • @chiragmadan1693
    @chiragmadan1693 3 ปีที่แล้ว +3

    Really helped me a lot. Thanks.

  • @Meirovsky
    @Meirovsky 3 ปีที่แล้ว +2

    Hey Conor thanks for the video! great content man!
    Could you give me an insight onhow can i add a session into my website to only display the splash screen once i get in the website?
    Thanks and Cheers!

  • @blinken77
    @blinken77 ปีที่แล้ว

    An absolutely amazing tutorial! +1 sub

  • @devilboybean4931
    @devilboybean4931 2 ปีที่แล้ว +1

    Heyy u r just awesome
    but
    Could pls try re making it somehow like impossible bureau website inro

  • @NicklasHolmqvist
    @NicklasHolmqvist 3 ปีที่แล้ว +1

    Again, a short and useful video!

    • @ConorBailey
      @ConorBailey  3 ปีที่แล้ว +1

      Thanks nicklas! I try to keep them as short as I can haha. I’ve watched a few tutorials myself and can’t stand when people waffle on! 😂

    • @NicklasHolmqvist
      @NicklasHolmqvist 3 ปีที่แล้ว +1

      @@ConorBailey hehe, so true :)

    • @NicklasHolmqvist
      @NicklasHolmqvist 3 ปีที่แล้ว +2

      @@ConorBailey What is great with small "builds" is that you leave the viewer to come up with own ides. I have one that can use this on :)

  • @sudeepspatil9702
    @sudeepspatil9702 3 ปีที่แล้ว +6

    My javascript is not working 🤷‍♂️

  • @ffedchik
    @ffedchik 3 ปีที่แล้ว +2

    I take off my hat to you, Sir.

    • @ConorBailey
      @ConorBailey  3 ปีที่แล้ว

      Thanks serg. Glad you found the video helpful!

  • @prodpreston
    @prodpreston 7 หลายเดือนก่อน

    I used a different color for my background in the intro and I'm curious, why does the border around the logo text slightly change color from the rest of the background?

  • @andresfelipepizoluligo1471
    @andresfelipepizoluligo1471 2 ปีที่แล้ว

    Wow thanks for your video and for your content

  • @SamirBrawlstars
    @SamirBrawlstars 2 ปีที่แล้ว

    Great video dude.. Thanks for helping us out...

  • @jay8409
    @jay8409 3 ปีที่แล้ว

    Great video Conor, please make more of these!

    • @ConorBailey
      @ConorBailey  3 ปีที่แล้ว

      Thanks Jay. Will do mate.

    • @barfeeli_baatcheet
      @barfeeli_baatcheet 3 ปีที่แล้ว

      @@ConorBailey (URGENT)Can i plz get the source code (URGENT)

  • @kikykotak4671
    @kikykotak4671 2 ปีที่แล้ว

    cool, thks for sharing

  • @xyzyjt
    @xyzyjt 10 หลายเดือนก่อน

    Hi mate, do you have the code available anywhere? Thanks for a wonderful tutorial! 👍👍

  • @lucilalico8852
    @lucilalico8852 3 หลายเดือนก่อน

    That's nice one. Can you explain me one thing? It loads anytime I'm going to home page , supposed to load once, Can't find solution for this.

  • @makandriival8507
    @makandriival8507 2 ปีที่แล้ว

    Wow! Nice and easy. Big thx!

  • @TheCodingOdyssey
    @TheCodingOdyssey 3 ปีที่แล้ว +1

    Close to 1000 man! Congrats!

    • @ConorBailey
      @ConorBailey  3 ปีที่แล้ว +1

      Thanks dude! Just checked out your channel too! Great stuff! Subbed 👍

    • @TheCodingOdyssey
      @TheCodingOdyssey 3 ปีที่แล้ว

      @@ConorBailey thanks man! I am subbed to you as well. Keep up the good work. Maybe we can do a collab at some point!

    • @ConorBailey
      @ConorBailey  3 ปีที่แล้ว

      @@TheCodingOdyssey sounds like a plan mate.

    • @TheCodingOdyssey
      @TheCodingOdyssey 3 ปีที่แล้ว +1

      @@ConorBailey do you have an email adress?

    • @ConorBailey
      @ConorBailey  3 ปีที่แล้ว

      @@TheCodingOdyssey yes mate conbailey90@gmail.com

  • @dexter-4178
    @dexter-4178 2 ปีที่แล้ว +1

    great video thanks a lot!

  • @harshitarahejaa
    @harshitarahejaa 2 ปีที่แล้ว +1

    This animation of flash screen is happening after every button i press on my site.. is there a way to solve it?

  • @Uncaught_in_promise
    @Uncaught_in_promise 3 ปีที่แล้ว

    Appreciate useful content. Thank you

  • @IanRedmon
    @IanRedmon ปีที่แล้ว +2

    I copied the code exactly and it doens't transition... my background is just dark grey

  • @spectra.shohan
    @spectra.shohan 2 ปีที่แล้ว

    You're amazing sir!

  • @shigzgd5072
    @shigzgd5072 ปีที่แล้ว

    You’re a Legend

  • @jjyynx2820
    @jjyynx2820 2 ปีที่แล้ว

    Amazing tutorial

  • @kristianrendic3011
    @kristianrendic3011 3 ปีที่แล้ว +3

    Thank you for the tutorial. Do you have any idea how i could make this mobile responsive (because i have a little bit bigger word :) )? And i would like to add, after the the text "Logo.", a picture with the same affect as the text, and then it would scroll to the main page. Do you have any advice to share since i am a beginner in this new world of web development :).
    Thank you in advance, kind sir.

    • @ConorBailey
      @ConorBailey  3 ปีที่แล้ว

      Hey Kristian thanks for watching. Re making the text responsive look into adding a media query to your css and adjust the font size when the screen is a certain width:
      @media screen and (max-width: 800){
      .logo{
      font-size: .8rem;
      }
      }

    • @ConorBailey
      @ConorBailey  3 ปีที่แล้ว

      For the logo image you will need to do the same technique as the video but just a different time out function for the image to appear once the text has faded out

    • @ConorBailey
      @ConorBailey  3 ปีที่แล้ว

      I’d be happy to look at your code if you need any assistance. Thanks again.

    • @kristianrendic3011
      @kristianrendic3011 3 ปีที่แล้ว +1

      @@ConorBailey Thank you so much, i really needed that. Especially for making my website mobile responsive. Thumbs up for you man. You got a new sub :)

    • @ConorBailey
      @ConorBailey  3 ปีที่แล้ว

      @@kristianrendic3011 awesome! Thanks mate. Glad to help!

  • @cihanyantr4697
    @cihanyantr4697 3 ปีที่แล้ว +2

    Thank you so MUCHH

  • @ykslooper
    @ykslooper 2 ปีที่แล้ว

    thanks man very helpful

  • @paulharvey11
    @paulharvey11 2 ปีที่แล้ว

    amazing!

  • @david-mt8wh
    @david-mt8wh 3 ปีที่แล้ว +1

    Great video. I'm having some trouble on my end and was wondering if you could post the files of this somewhere. To me my code looks the same as yours, but I could have missed something since I am a beginner in programming. Thanks!

    • @ConorBailey
      @ConorBailey  3 ปีที่แล้ว

      Hey mate. Can you put your code on code pen and I’ll see where you’re going wrong. I don’t have this code saved on my laptop anymore unfortunately.

    • @david-mt8wh
      @david-mt8wh 3 ปีที่แล้ว

      @@ConorBailey I believe my comments are getting blocked because of them containing a link. After the domain the rest of the link is "mrjacobson/details/NWpeBQe". I appreciate you helping me with this.

    • @david-mt8wh
      @david-mt8wh 3 ปีที่แล้ว

      Ok I figured it out. I accidently type .logo-active instead of .logo.active. I may not be the best at following tutorials but your tutorials are the best I've seen. +1 Subscriber to you my good man.

  • @preronaroy3763
    @preronaroy3763 2 ปีที่แล้ว +1

    Hey there I did the whole video and coded the thing but apparently the alphabets aren't swiftly shifting,in the beginning of the splash screening,
    The name of my logo isn't showing in the black screen area, it's showing only in the white area,
    Any guess why this is happening

  • @Alberto_Cavalcante
    @Alberto_Cavalcante 3 ปีที่แล้ว

    Very nice! Subscribed!

  • @abhinavbansal4218
    @abhinavbansal4218 3 ปีที่แล้ว

    Great work brother ! Bro please can you tell how we can add navigation bar after animation

  • @Febiuzz
    @Febiuzz ปีที่แล้ว

    I know this video is from 2 years ago but i was wondering if you could remake this splash screen for react js websites. because i'm having some problems to add it on my website

    • @Febiuzz
      @Febiuzz ปีที่แล้ว

      Because my header when the animation starts is on top of the splash screen and i can't fix it. i want the header tho to be fixed at the top everytime for when user scroll down.

  • @iammaavia
    @iammaavia 3 ปีที่แล้ว

    you've got a subscriber bro! 👍

    • @ConorBailey
      @ConorBailey  3 ปีที่แล้ว

      Legend! Thanks mate!

  • @devstuff92
    @devstuff92 2 ปีที่แล้ว

    Any tips on how I can implement this with ReactJS?

  • @gustavoengel1527
    @gustavoengel1527 3 ปีที่แล้ว

    Muito bom man! continue assim me ajudou demais +1 inscrito.

    • @ConorBailey
      @ConorBailey  3 ปีที่แล้ว +1

      Obrigado senhor! Obrigado por assistir! 👍

  • @FranciscoSilva-od2kr
    @FranciscoSilva-od2kr 2 ปีที่แล้ว

    How do I show the home page and the nav bar after the animation??

  • @jhodgsonni
    @jhodgsonni 3 ปีที่แล้ว

    Please help, JavaScript not working...console message: sign_up_btn.addEventListener("click", () => {
    I don´t know what I have to do.

  • @itsnewyt
    @itsnewyt ปีที่แล้ว

    What program are you using for your coding?

  • @ananthm3897
    @ananthm3897 2 ปีที่แล้ว

    could u open the screen bothsides

  • @rticul8862
    @rticul8862 2 ปีที่แล้ว

    I am pulling my hair out here. I have double checked that every line of code is exactly like yours and even on the same line numbers but when I view in live server its still the same as the very first time that I looked at it. Nothing at all is updating. This is the first time I have ever tried this so maybe it is something simple, but at this point I could use a hand!

    • @ConorBailey
      @ConorBailey  2 ปีที่แล้ว

      Hey mate are you getting an errors in console?

    • @rticul8862
      @rticul8862 2 ปีที่แล้ว

      @@ConorBailey I have zero errors and when my page opens it looks exactly like when you pulled it up at first. white background with black letters in the top left corner of the screen with "logo." underneath.

    • @ConorBailey
      @ConorBailey  2 ปีที่แล้ว

      @@rticul8862 I have never seen that error before. Looks like a chrome bug issue from searches. Can you pasted your html css and js code here and I can check on my side?

  • @YKDByJK
    @YKDByJK ปีที่แล้ว

    when i added it to my website it ruined how the base website looked and made it the base color of the splash screen

  • @johnericdonquevii5309
    @johnericdonquevii5309 7 หลายเดือนก่อน

    sir I can copy follow okay but i cant click and not working because my laptop visual studio code you send me pls because i have project my group pls i need front for style

  • @Voaq
    @Voaq 2 ปีที่แล้ว

    hey please the last part is not working for me

  • @audiospidej4401
    @audiospidej4401 3 ปีที่แล้ว

    Thanks

  • @mike9771
    @mike9771 2 ปีที่แล้ว

    It's not working for me. Could u take a look plz??

  • @jyoshnabutty3777
    @jyoshnabutty3777 2 ปีที่แล้ว +1

    Can uh please share the source code

  • @mdaziz8727
    @mdaziz8727 2 ปีที่แล้ว

    Hello sir i want to help fir making website

  • @codimantion
    @codimantion ปีที่แล้ว

    hey can you give the
    scource code

  • @Arjunkrm2003
    @Arjunkrm2003 5 หลายเดือนก่อน

    where can i get source code

  • @rizkynormal9741
    @rizkynormal9741 2 ปีที่แล้ว

    can i get the files?

  • @omardar4421
    @omardar4421 2 ปีที่แล้ว

    i tried it in. html it wont work!

  • @rakaa31
    @rakaa31 2 ปีที่แล้ว +1

    share the source code also conor!

  • @69Prinxe
    @69Prinxe 3 ปีที่แล้ว +2

    add source code

  • @sorincristian1502
    @sorincristian1502 2 ปีที่แล้ว

    He doesn`t know what means forEach, help?

  • @alooshianthings
    @alooshianthings ปีที่แล้ว +1

    its not working......my codes are as follows:
    css:
    *{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Courier", monospace;
    }
    header{
    position: relative;
    left: 0;
    top: 0;
    width: 100%;
    height: 80px;
    }
    header h4{
    position: absolute;
    left: 10%;
    bottom: 1rem;
    font-size: 1.6rem;
    }
    /* Splash Screen */
    .intro{
    position: fixed;
    z-index: 1;
    left: 0%;
    top: 0%;
    width: 100%;
    height: 100vh;
    background-color: #161616;
    transition: 1s;
    }
    .logo-header{
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #D9DCD6;
    }
    .logo{
    position: relative;
    display: inline-block;
    bottom: -20px;
    opacity: 0;
    }
    .logo.active{
    bottom: 0;
    opacity: 1;
    transition: ease-in-out 0.5s;
    }
    .logo.fade{
    bottom: 0;
    opacity: 0;
    transition: ease-in-out 0.5s;
    }
    html:

    RUSTIC FOOD








    Logo.



    Logo.



    js:
    let intro = document.querySelector('.intro')
    let logo = document.querySelector('.logo-header')
    let logoSpan = document.querySelectorAll('.logo')
    window.addEventListener('DOMContentLoaded',()=>{
    setTimeout(()=>{
    logoSpan.forEach((span,idx) => {
    setTimeout(()=>{
    span.classList.add('active')
    }, (idx+1)*400);
    });
    setTimeout(()=>{
    logoSpan.forEach((span,idx)=>{
    setTimeout(()=>{
    span.classList.remove('active');
    span.classList.add('fade');
    }, (idx+1)*50)
    })
    },2000);
    setTimeout(() => {
    intro.style.top= '-100vh'
    },2300);
    })
    })

    • @ConorBailey
      @ConorBailey  ปีที่แล้ว +1

      Your script tag in your html has a typo. You have put . It should be

    • @alooshianthings
      @alooshianthings ปีที่แล้ว

      Thanku

  • @omardar4421
    @omardar4421 2 ปีที่แล้ว

    someone help me

  • @kaivalya.k128
    @kaivalya.k128 2 ปีที่แล้ว

    not working

    • @ConorBailey
      @ConorBailey  2 ปีที่แล้ว

      It does work. You just have an error somewhere.

  • @ttvjackriot7734
    @ttvjackriot7734 2 ปีที่แล้ว +1

    Video was way too fast. Couldn't keep as a beginner. If you're new to coding, this video isn't for you.

    • @rticul8862
      @rticul8862 2 ปีที่แล้ว

      you can slow down the playback speed of the video.

  • @malaysianmorning3266
    @malaysianmorning3266 2 ปีที่แล้ว

    TQ mate thats very help me

  • @4everlatif
    @4everlatif 2 ปีที่แล้ว +1

    logoSpan.forEach((span, idx)=>{
    setTimeout(()=>{
    span.classList.add('active');
    }, (idx+1) * 400)
    })
    This is not working and I get "logoSpan.forEach is not a function" - any suggestions?

    • @ConorBailey
      @ConorBailey  2 ปีที่แล้ว

      It looks like you haven’t correctly selected the span elements. What do you get when you console log logoSpan? Probably undefined? Check your selector 👍

    • @lucasmeijer525
      @lucasmeijer525 2 ปีที่แล้ว +1

      i got the same problem, you got any solutions?

  • @bangrajee9215
    @bangrajee9215 ปีที่แล้ว

    i dont even understand why the transition doesntwork, once you put transition: 1s; the bg fades in while mine doesnt do anythign

    • @ConorBailey
      @ConorBailey  ปีที่แล้ว

      Can you post your code here. Will take a look

  • @jhchew2732
    @jhchew2732 ปีที่แล้ว

    Can I have your contact email ? becuz im new to this html and I had some confusing question problem about the css codes
    in the visual studio code

  • @NoakGT
    @NoakGT ปีที่แล้ว

    yo bro i got some problems you got discord or sum?

    • @ConorBailey
      @ConorBailey  ปีที่แล้ว

      What’s the issue mate I can try to help here

    • @NoakGT
      @NoakGT ปีที่แล้ว

      @@ConorBailey the intro is not working. its just a black screen.

    • @NoakGT
      @NoakGT ปีที่แล้ว

      @@ConorBailey nvm got it but how can i put my logo instead of the "logo" text?

    • @ConorBailey
      @ConorBailey  ปีที่แล้ว

      @@NoakGT use an image tag: