CSS Only Animated Background Effects | Html CSS Animation

Поделиться
HTML-код
  • Опубликовано: 25 авг 2024
  • Click For More : www.youtube.co...
    ------------------
    Enroll My Course : Next Level CSS Animation and Hover Effects
    www.udemy.com/...
    CSS Infinity Course : www.udemy.com/...
    Another Course : Build Complete Real World Responsive Websites from Scratch
    www.udemy.com/...
    ------------------
    Join Our Channel Membership And Get Source Code of My New Video's Everyday!
    Join : / @onlinetutorialsyt
    ------------------
    Source Code : / onlinetutorials
    Facebook Page : / onlinetutorialsyt
    Instagram : / onlinetutorials_youtube
    Twitter : / onlinetutoria16
    Website : www.onlinetutor...
    Buy Me A Coffee : www.buymeacoff...
    ------------------
    #csseffect #topcsseffects
    ------------------
    give proper credit if you repost this on other social media platform
    ------------------
    image source : www.pexels.com/
    ------------------
    Disclaimer video is for educational purpose only. Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for "fair use" for purposes such as criticism, comment, news reporting, teaching, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favor of fair use

Комментарии • 182

  • @pauloworkouts
    @pauloworkouts 2 года назад +118

    Very nice video :D
    For anyone asking how to use this as a background, use z-index= -100; inside .bubbles{} class like this:
    .bubbles{
    z-index= -100;
    }
    This will send it to the background, and all other divs will go on top of it.

    • @Cevu01
      @Cevu01 2 года назад

      thans for that bro

    • @mayconalexsander1217
      @mayconalexsander1217 2 года назад

      GENIUS, THANKS🤝

    • @L0V3V4MP1R3
      @L0V3V4MP1R3 Год назад +3

      @Honekichi Z-Index works in such a way that elements with a higher value will always be on top of the ones with lower values, like a hierarchy.
      Setting it to "-100" was done arbitrarily, realistically you can set it to any value (even to ridiculous amounts like -999999) as long as it's the lowest one compared to any other element that has a z-index.
      Likewise, if you want something to be on the top of everything else, using a z-index with the highest value in the page will also do the trick.

    • @KenzoFFx
      @KenzoFFx Год назад

      how can i add image GIF under this animation without get problem

    • @8koi245
      @8koi245 Год назад

      @TapGameplay- just in case you add some elements behind in the future, ensures it'll never the above them

  • @ahmadmuhammad5097
    @ahmadmuhammad5097 2 года назад +16

    Last but not least, he explained the secret of this genius project, the whole secret is in mathematics, how does that happen?
    First: here it is using (inline variables) like in the example (--i:number), how does that work? By controlling the tag by numbers like a class, how is that? By animation-duration dividing the number of seconds by the number, the speed of the tag will be the result of the division, for example: 120s / 1=120s This means that the tag will move from bottom to top within 120s = 2min and this of course will take time, but if you divide 120s / 30=4s This will only take 4s.
    This is simply the idea of ​​the genius project, and this is what the code does exactly, and this calculation only works using the calculator calc, like in the example calc (120 / var(--i) ), and you can put any name for the variable that will work for you also easily ,, This is the idea of ​​a genius project simply, and I hope that my explanation has won your admiration.

  • @TaKu296
    @TaKu296 9 месяцев назад +5

    Para los que quieran cambiar de color la tercera burbuja pueden usar un "span:nth-child(3n+3)".
    En resumen, 3= elemento donde empieza el conteo y 3n = el numero de espacios para volver a ejecutarse el cambio de color.

  • @nikhilsharma2421
    @nikhilsharma2421 Месяц назад

    Cool. Thank you so much for such tutorials please keep on posting more.

  • @Richard-tu4jv
    @Richard-tu4jv Год назад +3

    This looks incredibly cool thank you so much

  • @moonlightgirl2332
    @moonlightgirl2332 Год назад +1

    thank you! in case somebody like me wants to do this in react you got to put: style={{ "--i": 11 }}

    • @anshikashukla9003
      @anshikashukla9003 Год назад

      i had type code without any error but still it's not working, can you help?

    • @moonlightgirl2332
      @moonlightgirl2332 Год назад

      @@anshikashukla9003 yeah sure, explain me more

  • @tharinduperera7622
    @tharinduperera7622 2 года назад +2

    It is small cool nice .... good ... ❤️❤️👍👏

  • @shivamoeini1920
    @shivamoeini1920 Год назад +2

    Great, Thank you for the tutorial!

  • @FadiShakor
    @FadiShakor 10 месяцев назад +1

    Thank you very much

  • @wilmerpocaterrasulbaran9600
    @wilmerpocaterrasulbaran9600 Год назад +1

    Thank you man, you are great!!

  • @sabririhab5325
    @sabririhab5325 Год назад +1

    super super love it. thank you

  • @Kiwicoders256
    @Kiwicoders256 6 месяцев назад

    I loved the background music..

  • @KrysGames13
    @KrysGames13 2 месяца назад +1

    tnku so much

  • @mohdaman7958
    @mohdaman7958 2 года назад

    nice video bhai bahut kuch seekhne ko mila thanks bahi

  • @hugocangi6214
    @hugocangi6214 7 месяцев назад

    Hello friend, I just finished the one with animated bubbles
    very good, thank you and follow you
    greetings
    good week

  • @Global-y8p
    @Global-y8p 2 года назад +1

    Thanks bro it worked

  • @andresrivero551
    @andresrivero551 2 года назад +6

    It's beautiful... Good video bro, new sub 🤙🔥
    I have a little question, what extensions do you use?)

  • @trapez_yt
    @trapez_yt 3 месяца назад +1

    heading is not showing

  • @mubeenuddin8746
    @mubeenuddin8746 28 дней назад

    thanx

  • @hindustangameryogiraj9348
    @hindustangameryogiraj9348 2 года назад

    😍😍😍you are best code editor bre 😍😍😍😱🤖

  • @KellerG68
    @KellerG68 2 года назад +3

    You use a lot the CSS variables, you should use it too in the color definition instead of duplicate the values, you will avoid to re define all the properties

    • @fullgames926
      @fullgames926 2 года назад +3

      It just serves as an example not real world scenario

  • @raulhernanromeroherrera2547
    @raulhernanromeroherrera2547 2 года назад +13

    Desde Bogota, Colombia (no soy desarrolador y paso mi tiempo jugando con sus tutoriales pór que soy discapacitado) me gusto mucho el fondo y lo intente hacer con react pero me fallo la var--i. pero gracias muy interesante. si me puede ayudar tambien gracias. un abrazo.

  • @xmarvel9310
    @xmarvel9310 Год назад

    next level

  • @miraera1941
    @miraera1941 9 месяцев назад +4

    it doesn't work brroooooooo

  • @paradox987
    @paradox987 2 года назад

    You are amazing brother...

  • @renanfernandes1950
    @renanfernandes1950 2 года назад

    Great as always

  • @TEAWTODAY
    @TEAWTODAY 6 месяцев назад +1

    Thank you

  • @newzbharat
    @newzbharat 9 месяцев назад

    U r ausome

  • @JoseRamirez-oj6qg
    @JoseRamirez-oj6qg Год назад

    genial -- cool
    thax

  • @zorro2085
    @zorro2085 Год назад

    Respect✨

  • @MrKB_SSJ2
    @MrKB_SSJ2 Год назад

    BROOOOOOOOOOO MARRY ME!!!!! ITS SOOOOOO GOOD!!!!!!!!!
    THANK YOU

  • @XOBEP_KHEXTOB
    @XOBEP_KHEXTOB 2 года назад +68

    You can also use a gif background ;)

    • @developeria5984
      @developeria5984 2 года назад +4

      And we need to download 🙄🙄🙄

    • @InpireYourself23TT
      @InpireYourself23TT 2 года назад +11

      And is no longer CSS Only 🙄

    • @L0V3V4MP1R3
      @L0V3V4MP1R3 Год назад +3

      Page loading time would be higher IIRC

    • @icwhy4366
      @icwhy4366 Год назад +4

      GIF is not responsive depending on the frames, lenght, size and quality high in filesize and prone to dropping frames and lag the webpage, also a gif stops and restarts mid animation when the hoover ends resulting in a bad looking animation when hoovering over the button.

    • @master138
      @master138 Год назад +7

      1. The page won't be responsive.
      2. Gifs don't support all colors and gradients this means bad quality.
      3. Your website on big screens will be blurry.
      4. Loading time.

  • @LeConseiller
    @LeConseiller 2 года назад

    Thanks! Cool.

  • @Cartagena2050
    @Cartagena2050 10 месяцев назад

    Super !

  • @kingsleyemeka2136
    @kingsleyemeka2136 2 года назад

    Respect sir🙌

  • @aravind9842
    @aravind9842 2 года назад

    finally i done it

  • @8koi245
    @8koi245 Год назад

    nice, now I gotta add add some arr and math. random

  • @Iuissel
    @Iuissel 5 месяцев назад

    Nice 👌

  • @Killisraelis5360
    @Killisraelis5360 Год назад

    fucking hacker level animations salute to u you are just amazing in animations

  • @umangternate
    @umangternate 2 года назад

    The best

  • @Seedley
    @Seedley 2 года назад +3

    could you put a text on top of this in html? I'm having some trouble trying to do this. it looks like the lights do not entirely fit the screen

  • @nikashg4813
    @nikashg4813 Месяц назад

    How to add text in this

  • @llkteac8553
    @llkteac8553 Год назад +1

    very thanks I am a new developer and you helped me and I am 14

  • @urgut_mx
    @urgut_mx Год назад +1

    👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍👍
    while True:
    print(" 👍👍 ")

  • @8koi245
    @8koi245 Год назад

    Hahaha loved it
    in react you'll need to use style= {{"delay" : your_var}}

  • @chamalkakumuditha
    @chamalkakumuditha Год назад

    Thanx 👍

  • @AdeyCoder
    @AdeyCoder 2 года назад

    Cool 👍

  • @mughiramughal
    @mughiramughal 10 месяцев назад

    Please tell me Dear! How to static it like a section

  • @spacelover2868
    @spacelover2868 Год назад

    Nice

  • @NoelSkyline
    @NoelSkyline 11 месяцев назад

    Sorry I want to ask, why even though I have followed exactly as in the video but when I run the code, it is not round/bubble shaped but like a rectangle, Sorry if my English is bad, I used translate for that

  • @samuelmarcano4781
    @samuelmarcano4781 Год назад

    what letters did you use at the beginning?

  • @Yolo0918-g8d
    @Yolo0918-g8d 2 года назад

    Wow..cool :D

  • @razshike2988
    @razshike2988 2 года назад

    Nice ❤️❤️❤️

  • @AnonymousJohnDoe-cw1mp
    @AnonymousJohnDoe-cw1mp Год назад

    i want to add this to the background of the illuminated spinning 3d cube you made but i dont know how please could you help me @Online Tuorials

  • @adulhakimturobov2040
    @adulhakimturobov2040 2 года назад

    hallo good luck with your work i'm waiting for something like this again i'm uzbek

    • @academypn
      @academypn 2 года назад

      Eee gap yo o'zbeklar hamma yerda bor 🇺🇿😀

  • @Baby_kkaboom
    @Baby_kkaboom Год назад

    Does this work on replit?

  • @4evergrove139
    @4evergrove139 8 месяцев назад

    pero no muestra como dejarlo de fondo realmente no utiliza algun z-index o algo por el estilo, funciona la animacion pero no como fondo realmente

  • @sidcivic
    @sidcivic Год назад

    Give justify content space between than it will not go on ineside after zoom out

  • @avakinmio9080
    @avakinmio9080 Год назад

    man there are levels to this shit

  • @djibrilsamassa4342
    @djibrilsamassa4342 2 года назад +2

    how do you doing style="--i:...;" in react ?

    • @winter-bear.
      @winter-bear. 2 года назад +2

      it's html and css, no react my bro :)

    • @lisali6205
      @lisali6205 Год назад

      hey Djibril, have you solve this ?

  • @KenzoFFx
    @KenzoFFx Год назад

    how can add image GIF under this animation without get problem

  • @YapayBeyinler1
    @YapayBeyinler1 2 года назад

    They were very compatible with Glassmorphism

  • @ashar_naveed
    @ashar_naveed 2 года назад +6

    Great work as always! ❤
    I often saw you use style="--i:11" what is this? How do I implement it?

    • @KellerG68
      @KellerG68 2 года назад +6

      It is CSS variables, you can use these for all kind of purpose, even simplify all the CSS duplication

    • @ashar_naveed
      @ashar_naveed 2 года назад +1

      @@KellerG68 Hey thanks for the reply. I'm curious to know how will I use this on Webflow?

    • @lipsi_haskovna
      @lipsi_haskovna 2 года назад +4

      For example:
      RED
      YELLOW
      GREEN
      p {
      color: var(--clr);
      }
      You'll see the result :)

    • @weirdegg8316
      @weirdegg8316 Год назад

      I don't get it aswell '_'

  • @gokboru2771
    @gokboru2771 11 месяцев назад

    Brother animation duration not working in my vs code output what i can do for this

  • @user-si6ln7rx6u
    @user-si6ln7rx6u 8 месяцев назад

    I followed the same line of code, but something weird happened in the viewport.

  • @goku2006br
    @goku2006br 2 года назад +1

    Is there a way to put this a background?

    • @YuriG03042
      @YuriG03042 Год назад

      it's the whole point, yes

  • @dmitryrosenfold3089
    @dmitryrosenfold3089 2 года назад +1

    I don't understand why it doesn't work for me..
    animation-duration: calc(10s/var(--i));
    I do everything exactly the same as in the video, but the circles with this team stand still .. Can someone help me?

    • @fluffyniki3257
      @fluffyniki3257 2 года назад

      If they stands still then maybe your animation is broken :P first of do simple animations created by your own not copy paste from tutorials, you won't learn that much this way

    • @maxdurbin3033
      @maxdurbin3033 2 года назад

      @@fluffyniki3257 not trying to learn animation, trying to learn react.

    • @armor2009
      @armor2009 2 года назад +1

      Same here. As soon as I add that line, the animation stops.
      Edit: I found the problem...
      Make sure the line(s): are correct.
      I had --1 instead of --i

    • @young-millionaires
      @young-millionaires Год назад

      It happened to me too. Maybe you have another css code that specifies 'animate' as another value. Try using instead of only 'animate' =>'animate1'

  • @hamzaboubacar603
    @hamzaboubacar603 2 года назад +1

    First

  • @druken94
    @druken94 Год назад +1

    how can i use the style="--i:10 " in react?

    • @e.creates1200
      @e.creates1200 Год назад

      i did this:
      let style1 = { "--i": 11 }
      then this:

      then i created 10 more new number values for each span like:
      let style2 =
      let style3 =
      then i copy and pasted and scattered them in no particular order. i havent found a work around but this solution works. and as far as css, you can still do:
      calc( 125s, var(--i ) )

    • @javieruzcategui4441
      @javieruzcategui4441 Год назад

      @@e.creates1200 no workin help please

  • @rafaelmoreira6160
    @rafaelmoreira6160 9 месяцев назад

    Eu não consigo adaptar pro mobile. Alguém pode ajudar?

  • @m.nurichsanin7212
    @m.nurichsanin7212 2 года назад

    What themes do you use. Bro ?

  • @hindirecord6910
    @hindirecord6910 Месяц назад

    Where is source?

  • @nazmashaikh9568
    @nazmashaikh9568 Год назад

    Sir my output it's not coming it's showing blank

  • @renad1000
    @renad1000 Год назад

    Dosent work with me! i dont know why

  • @vegasishara8368
    @vegasishara8368 2 года назад

    like it

  • @Karan__Mali
    @Karan__Mali 2 года назад

    How to you create video please tell bro.

  • @wanderboys4946
    @wanderboys4946 11 месяцев назад

    How do I valign this to bottom?😢

  • @sabranatoutou6991
    @sabranatoutou6991 2 года назад

    How to create à text over it

  • @ameeshastephani4035
    @ameeshastephani4035 2 года назад +3

    Can I know how to write something in this animated background? When I wrote it, the animation background came separately

    • @ocskobianka8516
      @ocskobianka8516 2 года назад +1

      I would like to know it too, but every time i tryed, i never got a solution unfortunately, and he never shows hoe to do that :'( i guess u cant put things in front of an animated div

    • @dhoulTS1
      @dhoulTS1 2 года назад +2

      To use this as a background, use z-index= -100; inside ".bubbles{}" class like this:
      .bubbles {
      z-index= -100;
      }
      This will send it to the background, and all other divs will go on top of it.

    • @ameeshastephani4035
      @ameeshastephani4035 2 года назад +1

      @@dhoulTS1 Thanks for the reply

    • @ameeshastephani4035
      @ameeshastephani4035 2 года назад

      @@ocskobianka8516 Thanks for the reply

    • @ocskobianka8516
      @ocskobianka8516 2 года назад

      @@dhoulTS1 thank you, i will try it ❤

  • @JishanAhmed88
    @JishanAhmed88 4 месяца назад +1

    Source code link please?

  • @chukwukingsley
    @chukwukingsley Год назад

    I did everything right but the bubbles ain't moving like yours , they are just on a straight line , I don't get the problem .

    • @young-millionaires
      @young-millionaires Год назад

      It happened to me too. Maybe you have another css code that specifies 'animate' as another value. Try using instead of only 'animate' =>'animate1'

  • @eltondsouza4630
    @eltondsouza4630 2 года назад

    Sir please make this video zoom

  • @chiragbhaskar1468
    @chiragbhaskar1468 Год назад

    Sir ye style = " - - i : 1 " kya hota he
    Ak vidio uske pr banaye na plz

  • @tejashreemestry9186
    @tejashreemestry9186 2 года назад

    How to change the color of the each 3rd circle? And how to point it using inheritance?

    • @YuriG03042
      @YuriG03042 Год назад

      use the nth child selector like he did. why would you use inheritance, how would that be helpful?

  • @Bunny-lr5uc
    @Bunny-lr5uc 2 года назад +1

    Hi can I ask you what VS code color theme are you using? It looks nice. Thanks

  • @kiddoyoutube1
    @kiddoyoutube1 2 года назад

    I want, if i move the curser the background animation should also move along with it

    • @YuriG03042
      @YuriG03042 Год назад

      feel free to do it with javascript and listening to the mouse position event

  • @wearegonnadance
    @wearegonnadance 8 месяцев назад

    Hello! May I know what app you are using for coding?

    • @rajjogi7744
      @rajjogi7744 7 месяцев назад

      It is visual studio code

  • @-JeeyaKarki
    @-JeeyaKarki Год назад

    Sir, please explain us by talking and telling us and low down the of your background music.
    By the your is good but, I couldn't understand it without your explaination

  • @jenniferceledon9804
    @jenniferceledon9804 2 года назад

    Do You know how to insert a third color in the bubbles?

    • @YuriG03042
      @YuriG03042 Год назад

      use the nth selector or just pass in the style manually

  • @gideonadebisi207
    @gideonadebisi207 Год назад

    The code didn’t run I had problem with TranslateY I don’t know why at that point the code didn’t run well

    • @young-millionaires
      @young-millionaires Год назад

      It happened to me too. Maybe you have another css code that specifies 'animate' as another value. Try using instead of only 'animate' =>'animate1'

  • @mayconalexsander1217
    @mayconalexsander1217 2 года назад +3

    How do you adapt this background for mobile? Bubbles are stretched because of the border-radius:50%;

    • @javiermarinelli7841
      @javiermarinelli7841 Год назад +2

      reduce the px using @media query

    • @YuriG03042
      @YuriG03042 Год назад +1

      you can use rem instead of pixel, essentially the same. 50% shouldn't stretch it because it's half of the width/height

  • @josmarpena396
    @josmarpena396 Год назад

    good afternoon bro the video is fine I liked it a lot brother and a question can be asked responsive adaptable for mobile

    • @OnlineTutorialsYT
      @OnlineTutorialsYT  Год назад +1

      Yes you can

    • @josmarpena396
      @josmarpena396 Год назад

      @@OnlineTutorialsYT good brother that can be made responsive could you help me how to do it please brother

    • @darkboy_2
      @darkboy_2 Год назад

      ​@@OnlineTutorialsYT background music 🎶 so awesome ..please send me name of music

  • @NoOne-ir7wn
    @NoOne-ir7wn Год назад

    c'est beau mais la vitesse de deplacement est trop grande

  • @difajoz7225
    @difajoz7225 2 года назад +3

    Very good animation😍😍😍 But why source code is not FREE ? 😒😒😒

    • @YuriG03042
      @YuriG03042 Год назад +2

      because he is trying to make a living out of this? not everything needs to be free, it was coded right before your eyes, just redo everything they did, it's not that difficult

  • @robbridges1967
    @robbridges1967 8 месяцев назад

    With a name like Online Tutorials, you really need to narrate what each line of code does instead of playing music over a 10x speed video.

  • @web_maker1
    @web_maker1 2 года назад

    What is theme name?

  • @charakternik6630
    @charakternik6630 2 года назад

    I have a scroll on the right that shifts the text (

  • @user-ny9yw2lt7v
    @user-ny9yw2lt7v Год назад +2

    bro you stealing all this open source code of codepen and selling the source code here on youtube.. lol hahah

  • @meriemmery7648
    @meriemmery7648 2 года назад

    The code page did not open for me..Does it have conditions?

    • @winter-bear.
      @winter-bear. 2 года назад

      have u used ?

    • @meriemmery7648
      @meriemmery7648 2 года назад

      I mean the whole code . I was unable to download pages from his own site no page html and no page css

    • @winter-bear.
      @winter-bear. 2 года назад

      @@meriemmery7648 well..lets see

    • @thippanayugesh8414
      @thippanayugesh8414 2 года назад +1

      @@meriemmery7648 you will need to join his channel membership for that.

  • @jush4299
    @jush4299 Год назад +1

    How to link the background into page 2 and more or another html file please

    • @chukwukingsley
      @chukwukingsley Год назад

      Just create another html file , copy the current html and paste it there , use link rel = " " the name of your css file