How to create a CSS Preloader Animation With Javascript Tutorial | Javascript Preloader Tutorial

  Рет қаралды 89,281

developedbyed

developedbyed

Күн бұрын

Пікірлер: 128
@PetervandenHeuvel81
@PetervandenHeuvel81 5 жыл бұрын
I would change the clouds to inline SVG, and use a inline-css in the to improve the loading and rendering of the preloader. If you have to use network-links, then 'resource hints' help speed things up.
@developedbyed
@developedbyed 5 жыл бұрын
Great comment!
@PetervandenHeuvel81
@PetervandenHeuvel81 5 жыл бұрын
I've made an example for your users; codepen.io/petervandenheuvel/pen/ywBxxY. It's a bit too fast, so you might want to add a delay. Another website I use when making a preloader is this one: www.sitelocity.com/critical-path-css-generator. If you have a preloader, you want the CSS there as fast as possible, and do no network-requests at all. You might even want to include your JavaScript inline in the top of the document. I know, usually bad practice, but your preloader is a good exeception for this.
@madhavjha5289
@madhavjha5289 5 жыл бұрын
Hey can you please tell how to created those svg paths for the images ?
@PetervandenHeuvel81
@PetervandenHeuvel81 5 жыл бұрын
@@madhavjha5289 Sorry Sir, didn't notice your message until now. You've used Adobe Illustrator to open the .eps / SVG file, and pasted the markup with 'save as SVG' and 'show markup' button.
@DruideRC
@DruideRC 5 жыл бұрын
@@PetervandenHeuvel81 thank you man
@developedbyed
@developedbyed 5 жыл бұрын
Hope you enjoy this fun animation!
@thejoker5298
@thejoker5298 5 жыл бұрын
bro love u
@thejoker5298
@thejoker5298 5 жыл бұрын
your way of teaching is great............
@rotimiidowu6848
@rotimiidowu6848 4 жыл бұрын
Chat me boss on WhatsApp +2347067165237
@pascalelacome1616
@pascalelacome1616 5 жыл бұрын
I've been following you for a few months now. Always great tutos ! I'm learning with fun ! Thank you !
@RobertWildling
@RobertWildling 4 жыл бұрын
Nice design! But... If the preloader div is not removed after preloading, the keyframe animations keep running, which is a waste of processes. Therefore it would be advisable to remove the preloader div, once the transition to opacity 0 is done. Simply put an addEventListener on the preloader that listens to transitionend, then remove the preloader div.
@wonderlandsfoodie
@wonderlandsfoodie 5 жыл бұрын
The from and to let’s go ladies killed me ahah! Your videos are amazing!
@husseineid7885
@husseineid7885 3 жыл бұрын
I have been looking for this tutorial series since ages. Thank you so much.
@NychroneIB
@NychroneIB 5 жыл бұрын
6th video I've randomly stumbled on and dang it I'm subscribing. Great work!
@notratulshariar
@notratulshariar 5 жыл бұрын
you have uploaded a tutorial that i was looking for. thank you.
@rotimiidowu6848
@rotimiidowu6848 4 жыл бұрын
You're a good tutor just keep it up Boss, this is one of the best tutorial have ever watched.... Explanation is very clear...
@gopnikdj
@gopnikdj 4 жыл бұрын
The kindest tutorial I have ever seen
@arianbagheri7137
@arianbagheri7137 4 жыл бұрын
ULTRA USEFULL , just what i wanted , god i just realized i didn't know anything about CSS animation property!!
@bythealphabet
@bythealphabet 5 жыл бұрын
From Croatia to the Caribbean, thank you man
@developedbyed
@developedbyed 5 жыл бұрын
hope to visit one day!
@remax110
@remax110 5 жыл бұрын
Great tutorial. I hope your feeling better.
@developedbyed
@developedbyed 5 жыл бұрын
Today is actually the worst day...but I ain't stopping. Thank you!
@imandrew4966
@imandrew4966 5 жыл бұрын
Pleaseeee keep these videos coming, you're a fantastic teacher!
@developedbyed
@developedbyed 5 жыл бұрын
Thank you Andrew!
@thebmusproject
@thebmusproject 4 жыл бұрын
Thanks for the non-jQuery version!
@BroMacCIA
@BroMacCIA 3 жыл бұрын
The magic is a simple one line in js ? Nice thank you
@edrianmansilungan8089
@edrianmansilungan8089 5 жыл бұрын
Thanks for this tutorial. I have been searching this one and i would like to try it.
@jasonmiles7502
@jasonmiles7502 5 жыл бұрын
man you're so funny hope you feel better soon the preloader's a pretty good idea thanks for the tips!
@rkavi53
@rkavi53 5 жыл бұрын
Wow. Supercool. I never do html and css but I understand the concept clearly
@to_serveMyNation
@to_serveMyNation 2 жыл бұрын
Your coding style is awsm little fun and little coding
@gustavbrolin623
@gustavbrolin623 4 жыл бұрын
Could you be kind and mail me the code, I think I've messed something up, because I can't get rid of the loading screen. Which results in the "page" not appearing.
@ТюзМайский
@ТюзМайский 5 жыл бұрын
im not a very beginner but a little more. i did this right now. ty Russia
@mohammedelhoussni
@mohammedelhoussni 2 жыл бұрын
Amazing amazing ed you'r the best thank you soo much
@atomicpx
@atomicpx 2 жыл бұрын
This is so great! Could you explain how to do this only once per session so that you don't get this every time you load the page?
@LENTECH
@LENTECH 5 жыл бұрын
perfect explanation a big thumbs up for your video....
@thelifeofmoom5794
@thelifeofmoom5794 3 жыл бұрын
thank you so much you save lives
@danyramchandra444
@danyramchandra444 4 жыл бұрын
Thank you for the great content sir.. your explanations are amazing...
@chinmaybhogaonkar
@chinmaybhogaonkar 3 жыл бұрын
Thanks
@team4b68
@team4b68 5 жыл бұрын
Really well explained! :)
@SirSW33TY
@SirSW33TY 5 жыл бұрын
May you make a video on how to create shopping bag(vanila js without jquery)?
@kris10an64
@kris10an64 5 жыл бұрын
Another great video 👍👌
@bhaskarrajchauhan7861
@bhaskarrajchauhan7861 3 жыл бұрын
thanks dev .
@damianperera927
@damianperera927 4 жыл бұрын
Love your content
@xlu125
@xlu125 4 жыл бұрын
Hi, excellent tutorial, just one question. In your app.js preload has dot in front of it and preload-finish doesn't. Why? Thanks
@sravankumar6974
@sravankumar6974 5 жыл бұрын
Great tutorial!! Also could please let us know how to create objects using SVG? Thanks
@John-du4wf
@John-du4wf 5 жыл бұрын
thank you very much dev
@bikramchettri9405
@bikramchettri9405 5 жыл бұрын
cool. can you do a tutorial on lazy loading images.
@developedbyed
@developedbyed 5 жыл бұрын
Have it on my list!
@bikramchettri9405
@bikramchettri9405 5 жыл бұрын
​@@developedbyed​Congrats on reaching 2K subscribers
@indosharing5475
@indosharing5475 4 жыл бұрын
this amazing, but how can the color of the preload-finish's background is blue, on me is still white
@Micsc
@Micsc 5 жыл бұрын
Thanks for that. Very useful.
@developedbyed
@developedbyed 5 жыл бұрын
Thanks for taking the time to watch!
@Micsc
@Micsc 5 жыл бұрын
@@developedbyed great profile btw.
@cromaticoagency3177
@cromaticoagency3177 5 жыл бұрын
awesome content !!! thanks !!! I have a question in the case that I want the animation to load every time the website is accessed. How could I do that?
@aleksd286
@aleksd286 5 жыл бұрын
why opacity: 0 and pointer-events: none instead of visibility: hidden or display: none?
@dipanshparmar3769
@dipanshparmar3769 4 жыл бұрын
Thanks Bud :)
@MiguelGonzalez-eb9lj
@MiguelGonzalez-eb9lj 5 жыл бұрын
My Thing loads to fast, doesn't even give me enough time to see the animation what did i do wrong? also the section with the arrive header and image the background wont change color
@GintasLtu
@GintasLtu 4 жыл бұрын
same...
@suyashdhumal3
@suyashdhumal3 3 жыл бұрын
Because in the intro he styled it but in the tutorial he didn't. Fair enough because this is a preloader tutorial and not a website tutorial.... And for the fast loading thing 21:35
@suyashdhumal3
@suyashdhumal3 3 жыл бұрын
if you want everyone to see it for say... 5 seconds then put setTimeout(function () { preload.classList.add("preload-finish"); }, 5000); in the window onload eventlistener
@umityasarturk6424
@umityasarturk6424 3 жыл бұрын
@@suyashdhumal3 thanks bro
@artsbrand
@artsbrand 5 жыл бұрын
We love you too bro!
@omorfaruk6986
@omorfaruk6986 4 жыл бұрын
Brother, give us a JavaScript live project tutorial
@OmarMaciasarevalo
@OmarMaciasarevalo 4 жыл бұрын
Excellent....
@desequilibradoo
@desequilibradoo 5 жыл бұрын
Ed why do you use opacity:0 to get rid of preloader? Why not display:none or visibilitiy:hidden?
@mellow_studio23
@mellow_studio23 3 жыл бұрын
Thanks Bro
@thehardyboiz1
@thehardyboiz1 5 жыл бұрын
Awesome!
@Godisbetter909
@Godisbetter909 4 жыл бұрын
Love you too, thank you!
@ahmedchouihi
@ahmedchouihi 3 жыл бұрын
I want to make it related to time not loading ? Could you help me, thanks
@wagnermartins6873
@wagnermartins6873 3 жыл бұрын
I did take thousands of years to listen u to tell that shift + alt down or up copy the lines, i really wanted to know this shortcut but never found lmaooo
@sagarjasani7622
@sagarjasani7622 5 жыл бұрын
Great video.. Just wanna ask one thing.. What theme are you using for visual studio code...? 😂 It looks pretty..
@developedbyed
@developedbyed 5 жыл бұрын
Material theme palenight 😁
@sagarjasani7622
@sagarjasani7622 5 жыл бұрын
Will surely try...
@yasazaheen
@yasazaheen 4 жыл бұрын
For me the slow 3G was too fast and I couldn't see the animation properly. So I added a custom profile and set the upload and download speed to 5ms and latency to 2ms. If anyone had this same problem you can add this custom network profile and your problem should be solved.
@HostDotPromo
@HostDotPromo 5 жыл бұрын
Great for loading. Have you ever tried linux dude? Think you may enjoy it.
@developedbyed
@developedbyed 5 жыл бұрын
Im tempted...
@gauravborra1
@gauravborra1 4 жыл бұрын
For actual use case : i have a long page website then how to restrict users to scroll to bottom of website from behind the preload overlay ? it will be disaster if user lands on middle of page Please anyone help.
@vermstella2964
@vermstella2964 2 жыл бұрын
Best!
@user-zp1dv4yh5e
@user-zp1dv4yh5e 5 жыл бұрын
wait ! where is "flight-sky-clouds-fly.jpg" ? you didn't add that in drop box
@AbdulKhan-nx8mk
@AbdulKhan-nx8mk 4 жыл бұрын
hey man thats supposed to be the landing page lol
@ckhit
@ckhit 5 жыл бұрын
Does the window.addEventlistener('load', () =>){//do something}); not work on safari or is it just me?
@shargenezangana9320
@shargenezangana9320 3 жыл бұрын
Hello, first I would like to thank you for your work! You have helped me so much through my projects! With my preloader everything works great however after it finishes fading out. I can not click on any links on my hero page. Any help would be appreciated.
@shargenezangana9320
@shargenezangana9320 3 жыл бұрын
Nevermind! I found solution in the comments that the answer is at 19:02. I did the preloader prior to this video, then came across my issue. If you watched other videos you made the same mistake as I did. I did not come to this channel first!
@caelim3524
@caelim3524 4 жыл бұрын
I'm starting to build websites for people. I'm currently building one for myself and I built one for a friend. I use django, html, css, bootstrap, and jquery to make sites. I was wondering how much I should charge a client? Hopefully I will eventually be paid to create a website for someone and I don't know how much I should charge. I'm a complete begginner and 1 person so it shouldn't be too much but I also don't want to get short changed
@MiguelGonzalez-eb9lj
@MiguelGonzalez-eb9lj 5 жыл бұрын
where does the preload-finish go in the html?
@esraamahmmoud1607
@esraamahmmoud1607 5 жыл бұрын
greet content
@MiguelGonzalez-eb9lj
@MiguelGonzalez-eb9lj 5 жыл бұрын
The background arrived section didnt change color for me...
@radanmitasik8793
@radanmitasik8793 5 жыл бұрын
What is the source of your project ideas ? Each of them are special and fun to do :)
@developedbyed
@developedbyed 5 жыл бұрын
I just come up with something in an hour and hope for the best lol.
@nexpid
@nexpid 5 жыл бұрын
I have a question. What named the program you using in this video?
@marcoonlinetv7769
@marcoonlinetv7769 5 жыл бұрын
Where did you found all those cool images you are using in projects ?
@developedbyed
@developedbyed 5 жыл бұрын
A lot of google searching and if I cannot find something then I will just make it in Illustrator 😀
@marcoonlinetv7769
@marcoonlinetv7769 5 жыл бұрын
@@developedbyed I guess I thought on your images made in illustrator. They are awesome! I hope you make it available in new projects you create ! Keep good work !
@developedbyed
@developedbyed 5 жыл бұрын
@@marcoonlinetv7769 Maybe some videos creating illustrations? hmmm
@DJMpro1999
@DJMpro1999 5 жыл бұрын
Nice 666 likes and if someone else comments 69 comments. You have been blessed Ed!
@MiguelGonzalez-eb9lj
@MiguelGonzalez-eb9lj 5 жыл бұрын
does anyone know how to turn the section background blue?
@khbipu2977
@khbipu2977 4 жыл бұрын
My hard reload is not working... What can i do?
@NERO-ez1mn
@NERO-ez1mn 5 жыл бұрын
asterisk are indicators of the ROOT
@mr.magicalbanana2126
@mr.magicalbanana2126 5 жыл бұрын
I don't know why but for me in the Dropbox i can only see two images can you post the files somewhere please thank you.
@mikatiihonen
@mikatiihonen 4 жыл бұрын
Same. Just go to pexels and load pic of airplane there
@INKWEON7269
@INKWEON7269 5 жыл бұрын
Wow. it's great video. thanks! I have a question. i want to express Number (0% ~ 100%) how to create it~?
@developedbyed
@developedbyed 5 жыл бұрын
I will make a video in the future!
@varaprasadhalajangi8200
@varaprasadhalajangi8200 5 жыл бұрын
Basically we can't know how much resources are loaded but we can fake that.
@roope8668
@roope8668 5 жыл бұрын
Do it 😊
@sivakrishna6682
@sivakrishna6682 4 жыл бұрын
19:02 If you just want to know how to get rid.
@kafin3504
@kafin3504 5 жыл бұрын
how do you have that reload button on browser have 3 option of refresh?
@varaprasadhalajangi8200
@varaprasadhalajangi8200 5 жыл бұрын
Right click on that
@alexjansson7816
@alexjansson7816 5 жыл бұрын
you must be in inspector to accesses that
@shinrakeyp
@shinrakeyp 4 жыл бұрын
19:40 Can someone explain me why we use "window.addEventListener..." and not "document.addEventListener" ?
@khbipu2977
@khbipu2977 4 жыл бұрын
Because load is a window function If we want to add event in our html file then we use document. But when we add event in window function like load unload scroll etc then we use window.
@ahmedchouihi
@ahmedchouihi 3 жыл бұрын
//get rid of preloader after specific time setTimeout(function () { FetchData(); }, 2000); function FetchData() { const preload = document.querySelector(".preload"); preload.classList.add("preload-finish"); }
@appelsap45
@appelsap45 4 жыл бұрын
you kinda look like erick the architect
@user-zp1dv4yh5e
@user-zp1dv4yh5e 5 жыл бұрын
why other images don't work ,and they are showing with white background
@jennyll8526
@jennyll8526 2 жыл бұрын
i think so 而你在其中
@kimarieldequilla9586
@kimarieldequilla9586 4 жыл бұрын
preloader doesnt fadeout for me
@madhan5791
@madhan5791 4 жыл бұрын
Video preloader???
@jennyll8526
@jennyll8526 2 жыл бұрын
i follow u ,but can not let it run right.
@StarcoreLabs
@StarcoreLabs 5 жыл бұрын
Coding Yoga with Ed
@developedbyed
@developedbyed 5 жыл бұрын
Push..and stretch!
@LabhamJain
@LabhamJain 5 жыл бұрын
claps Only 1 Dislike mmm I think this is by mistakely
@PS-le4mf
@PS-le4mf 5 жыл бұрын
join instagram! The clever programmer is on there and so many others!
@enffinity420
@enffinity420 4 жыл бұрын
vezi, ca trebuie 130% nu -130%
@kupaporusku
@kupaporusku 5 жыл бұрын
From to to From nigga!
@zaydessaidi4768
@zaydessaidi4768 8 ай бұрын
wollah someone help me sahbi i dont understand cancer for him😡😡😡😡😡😡😡🤬🤬🤬🤬🤬🤬
Build A Meditation App With Javascript HTML & CSS!
45:02
developedbyed
Рет қаралды 180 М.
HELP!!!
00:46
Natan por Aí
Рет қаралды 74 МЛН
Симбу закрыли дома?! 🔒 #симба #симбочка #арти
00:41
Симбочка Пимпочка
Рет қаралды 3,2 МЛН
小路飞还不知道他把路飞给擦没有了 #路飞#海贼王
00:32
路飞与唐舞桐
Рет қаралды 83 МЛН
Car Bubble vs Lamborghini
00:33
Stokes Twins
Рет қаралды 45 МЛН
Top 10 CSS One Liners That Will Blow Your Mind
13:34
developedbyed
Рет қаралды 979 М.
Awesome 3D ANIMATION Javascript Tutorial!
35:11
developedbyed
Рет қаралды 684 М.
Loading Dots CSS Animation Tutorial
9:03
Angela Design
Рет қаралды 21 М.
1 Trick To Creating Awesome Websites! (JS ANIMATIONS!)
26:51
developedbyed
Рет қаралды 294 М.
Use Spinner and Create Page Loader in Bootstrap 5
8:23
ByteGrad
Рет қаралды 18 М.
Never Design Again: CANVA AI Just Dropped A Huge Update!
17:40
Did you know you can test a battery like this? 🪫🔋😳
0:13
scottsreality
Рет қаралды 2,8 МЛН
Не бойтесь экраны "водопады"
1:00
Бананикс
Рет қаралды 396 М.
Máy báo động cho gia đình mãi đỉnh
0:31
SaboMall
Рет қаралды 32 МЛН
ИГРОВОЙ ПК от ИЛОНА МАСКА, Распаковка
32:50
HONOR MAGIC 7 PRO. ПЕРВЫЙ ОБЗОР В РОССИИ
20:21
ЧЕСТНЫЙ БЛОГ
Рет қаралды 59 М.