Realistic Water Effect without JavaScript - HTML/CSS Only

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024
  • Create a realistic water flowing effect with HTML and CSS using custom svg turbulence filter. No JavaScript needed!
    Source Code: redstapler.co/...
    SVG Turbulence Filter Article: bit.ly/2MbRKuM
    === Follow us on ===
    Facebook: / theredstapler
    Website: redstapler.co/
    Twitter: / redstapler_twit
    #SVG #CSS #WebDesign

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

  • @brawndo8726
    @brawndo8726 5 лет назад +267

    This is one of the most amazing things I've seen in web development over the last several years.

    • @aperson4051
      @aperson4051 5 лет назад +5

      It's just a filter ...

    • @brawndo8726
      @brawndo8726 5 лет назад +4

      @@aperson4051 It's just a filter, but used to create an impressive effect.

    • @jacobtran4010
      @jacobtran4010 5 лет назад +5

      @@brawndo8726 just a filter really.

    • @GergiH
      @GergiH 5 лет назад +8

      To all who says "it's just a filter", I'd bet my ass you would've "just" make it a video loop instead and "just" set it as the background. It's way more efficient this way and I guess a lot of us didn't even know these type of things can be achieved with only CSS (and good masking).

    • @jacobtran4010
      @jacobtran4010 5 лет назад +2

      @@GergiH there isn't a good usage for this man.

  • @anakinskywalkerrr
    @anakinskywalkerrr 5 лет назад +54

    No music, straight to the point, 100% will sub for that

  • @jmbeatsbbx
    @jmbeatsbbx 5 лет назад +111

    I have no idea how did you come up with this idea.
    But it was mind blowing!

  • @xNiqueish
    @xNiqueish 5 лет назад +24

    I'm in web development for years and I haven't seen anything like this before.
    Mind blowing

  • @Andrey-il8rh
    @Andrey-il8rh 5 лет назад +179

    SVG filters is like a separate universe. Maybe someone could recommend a good overview tutorial on the topic?

    • @DerJP
      @DerJP 5 лет назад +2

      Gabriel Klenner that‘s what I thought as well

    • @loltool5513
      @loltool5513 5 лет назад +1

      @Gabriel Klenner shesays did a vid on it.
      it was a scroling texture

    • @Valhalla43
      @Valhalla43 5 лет назад

      The linked Sara Soueidan article on feTurbulence is very good would recommend

  • @JasonStewart1124
    @JasonStewart1124 5 лет назад +25

    Awesome tutorial . Beware that the svg is heavy on processor load. Leaving it open for a few minutes got my computer nice and toasty.

  • @renn93
    @renn93 5 лет назад +3

    Okay I think this ia the best time to return in learning again html, css and this svg things. It is so wonderful to watch.

  • @hakzima
    @hakzima 5 лет назад +17

    Pixar CEO “Red Stapler was able to build this in a cave! with boxes of scraps”

    • @sudofox
      @sudofox 5 лет назад +5

      "Well I'm sorry. I'm not Red Stapler."

  • @cortarelva
    @cortarelva 5 лет назад +12

    This is me clapping my hands to you dear Sir.

  • @XxMrBryanxX
    @XxMrBryanxX 5 лет назад +4

    What!?! You created this? This mans a scientist

  • @ShayanBinShad
    @ShayanBinShad 4 года назад +1

    I was 99.9% sure that it's SVG Turbulence Filter 😺 but 0.1% confused how did you got the cool background to present?!! 🧐😯😱
    Nice explanation. 😀👍

  • @ithinkimhipster502
    @ithinkimhipster502 5 лет назад +1

    I'm so lucky to have come across this video. The filter tag you applied to the avg is the exact effect effect I'm looking for. I want to recreate the visual effect that occurs when you animate an image that's drawn slightly differently in each frame.

  • @josephemris
    @josephemris 5 лет назад +1

    AMAZING!!!!!
    Simply amazing!!!
    Great video, new follower here

  • @irfanrona5479
    @irfanrona5479 5 лет назад +1

    Extremely out of mind. You're Genius !

  • @hassanhaider2380
    @hassanhaider2380 5 лет назад +1

    Very soothing background and very soothing voice too!

  • @guilhermesmuller
    @guilhermesmuller 5 лет назад +1

    Very interesting technique, thanks for sharing it in such a short video.

  • @Maxetkd
    @Maxetkd 5 лет назад +3

    Whilst searching 's meaning, I read ''But there are some SVG properties that cannot be animated through CSS that can through SVG. An SVG path, for example, comes with a set of data (a d="" attribute) that defines that path's shape. This data can be modified and animated through SMIL, but not CSS.''
    So is this HTML/CSS or HTML/CSS/SMIL?

  • @smiley2827
    @smiley2827 3 года назад

    I am not even frontend but your documentation reading skill made even backend, DevOps guy subscribed to you, So keep up ;)

  • @jamilamini7807
    @jamilamini7807 5 лет назад +32

    Css is going to next level
    One day we will call it a programming language wait for sometime

    • @IkikaeruRaimei
      @IkikaeruRaimei 5 лет назад +2

      Or not, this effect is just simple. If you were to do that realistically (Not like in the video where it is just an image deformation), it needs a shader...

  • @sakuragi9607
    @sakuragi9607 5 лет назад +1

    Clear explanation and it’s a video with audio not text thank you 👏👏❣️

  • @chickencamp7154
    @chickencamp7154 5 лет назад +18

    I can't see that background in the same way as I did initially xD

  • @itdat9767
    @itdat9767 4 года назад +1

    That's amazing! Thank you so much.

  • @rolandgerard6064
    @rolandgerard6064 5 лет назад +1

    This is really amazing, of course subscribed and a big 👍

  • @AstroDogeDX
    @AstroDogeDX 5 лет назад +3

    That's incredible!

  • @oldbootz
    @oldbootz 5 лет назад +1

    I love this! Great presentation!

  • @brunovaz
    @brunovaz 5 лет назад +26

    I'm scared to check the canIuse of these filters

    • @FlorianDootz
      @FlorianDootz 5 лет назад

      Looks like only safari can't handle the feTurbulence-element.

  • @JassarDev
    @JassarDev 4 года назад

    Thank you for this, appreciate it!
    I wish there was a bit more explanation of what's going on after you inserted the svg, but I'll read the documentation.

  • @rideroundandstuff
    @rideroundandstuff 5 лет назад +1

    This is amazing. Thank you so much for sharing!

  • @gordonruthven7656
    @gordonruthven7656 5 лет назад +1

    Absolutely superb!

  • @MrLaxr-op4be
    @MrLaxr-op4be 5 лет назад +4

    Next level Idea!

  • @rvsamsung77
    @rvsamsung77 5 лет назад

    This is one of the most amazing things I've seen in web design for the last couple of days

    • @boiimcfacto2364
      @boiimcfacto2364 5 лет назад

      Nice work literally copying the top comment.

  • @Mosiah369
    @Mosiah369 4 года назад +1

    Wow! spectacular!

  • @alexholker1309
    @alexholker1309 5 лет назад +2

    Very interesting. I've used SVG filters and masks before (using feColorMatrix to recolour a character's football uniform), but haven't looked into other filters like this one.

  • @Kriyos0666
    @Kriyos0666 5 лет назад +7

    And finally i need this for minecraft rtx technology

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

    wow this is overpowered. i feel completely useless due to the fact i never used svg filters and i've played with hmtl/css for 20 years. definitely some potential here.

  • @DevMoSofi
    @DevMoSofi 5 лет назад +1

    Keep the great work up

  • @Omsos116
    @Omsos116 5 лет назад

    Thats mindblowing

  • @JohnLittler
    @JohnLittler 5 лет назад +53

    This feature is only good as a clever trick. Every time we try to incorporate even simple animations into our web apps the added CPU usage is just not worth it.

    • @nofacee94
      @nofacee94 5 лет назад +1

      But these CSS animations can run on the GPU.

    • @derekacosta1584
      @derekacosta1584 5 лет назад +1

      @@nofacee94 Making them pointless on anything other than desktop or non-webgl platforms

    • @K-Fed
      @K-Fed 5 лет назад +3

      @@derekacosta1584 Why's that? Mobile devices have more than adequate GPUs in them for this, and coding using CSS has less boilerplate than a WebGL variant.

    • @sugarbooty
      @sugarbooty 5 лет назад +1

      @@K-Fed This is a desktop only kinda thing in my mind, why the hell would you want your phone to slow down and get hot when you open up a website? You'd go to another one

    • @K-Fed
      @K-Fed 5 лет назад +4

      @@sugarbooty That entirely depends on the application and the implementation. If you're serving up a rich SPA that doesn't have a huge amount of content, then the CPU usage will be very reasonable. That's especially true if you scale the graphic size to the screen size of the mobile device. I tried the demo on my old Samsung Note 4 and it's perfectly fluid and doesn't cause any slowness of the device. On my 10 year old laptop, my CPU barely reaches more than 2% and I don't notice any performance impacts with the tab open and in focus.
      You also have to keep in mind that performance isn't crucial for a lot of applications. For something like Amazon or Google search results, having a fast and snappy website may increase retention and conversions. A leisure website where people just mindless browse cool images and videos after their day is complete won't need to be optimized the same way to shave a few milliseconds on page load or save and handful of CPU cycles.

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

    Awesome, thank you. Is it, or can it be made responsive?

  • @ne9835
    @ne9835 5 лет назад +1

    Hats off to you my man!

  • @pavkey88
    @pavkey88 5 лет назад +10

    This is great but I wonder how hard this is on the processor. Reminds me how we used to fake stuff in flash but this is way cooler

    • @domnik9062
      @domnik9062 5 лет назад

      This and That just an assumption: Ripple effects like these are normally realized with a Normal/Displacementmap as seen in this video. So the effect is pretty surly achieved with shaders and shaders run on gpu not cpu

    • @AntonioNoack
      @AntonioNoack 5 лет назад

      Jason Stewart
      1 week ago:
      Awesome tutorial . Beware that the svg is heavy on processor load. Leaving it open for a few minutes got my computer nice and toasty.

  • @Huge_jass
    @Huge_jass 5 лет назад +1

    This moment when you made most beautiful game in html and css

  • @jamesblackwell2067
    @jamesblackwell2067 5 лет назад +6

    wow, i didnt know this was possible

  • @peridotleo4333
    @peridotleo4333 5 лет назад +1

    Instant subscription!

  • @jaycal1920
    @jaycal1920 5 лет назад

    To the point simple. Nice.

  • @SouravendraKrishnaDeb
    @SouravendraKrishnaDeb 5 лет назад +15

    I'd love to know if implementing this in an actual website is too resource intensive or not.

  • @hanstransjuicer8911
    @hanstransjuicer8911 4 года назад

    Awsome. Just awsome.

  • @malou5118
    @malou5118 3 года назад

    wau amazing mind blowing

  • @visao338
    @visao338 3 года назад

    😱😱😭Thanks so much. I'm struggling with this problem

  • @kryptonnn652
    @kryptonnn652 5 лет назад +6

    Wow, amazing.

  • @sai78206
    @sai78206 5 лет назад +21

    This is something next level which I never achieve 😂😂

    • @aprimic
      @aprimic 5 лет назад +1

      Copy paste

    • @Andrey-il8rh
      @Andrey-il8rh 5 лет назад

      In fact it's very easy to achieve

  • @SciDOCMBC
    @SciDOCMBC 5 лет назад +1

    a really great job 👍

  • @davidhernandez1699
    @davidhernandez1699 5 лет назад

    Super nice!
    Is there any way to control the flow direction of the water?

  • @furbi963
    @furbi963 5 лет назад

    Simple, bonito y hermoso 😍👌

  • @elProdigio
    @elProdigio 5 лет назад +4

    It's magic.

  • @lillaraczszabo6720
    @lillaraczszabo6720 3 года назад

    Thank you, it helped a lot! :)

  • @jinnielee7285
    @jinnielee7285 4 года назад

    beautiful

  • @FirdavsiWebDev
    @FirdavsiWebDev 5 лет назад +1

    Awesome! thanks dude!

  • @lonnybulldozer8426
    @lonnybulldozer8426 5 лет назад +18

    It's so beautiful, I cried tears of joy. I saw the face of God in the peaceful flow of the water. I don't believe this is just HTML and CSS, I believe you are a prophet sent down from the heavens to guide us through these trying times. I'm willing to fight for you, just tell us all what to do. Why are we here?

    • @mohammadoulabi4212
      @mohammadoulabi4212 5 лет назад +1

      lol

    • @Andrey-il8rh
      @Andrey-il8rh 5 лет назад

      🙏🙏🙏

    • @MaxxSkywalker
      @MaxxSkywalker 5 лет назад

      *prophet
      www.dictionary.com/browse/prophet?s=t

    • @lonnybulldozer8426
      @lonnybulldozer8426 5 лет назад +2

      @@MaxxSkywalker Which is exactly what I wrote. Your point being? Either way, this was a just an experiment of mine, as I use you sniveling swine to learn more about your predictable and grotesque behaviors. For you see, I am one of the biggest, if not the biggest troll in the game. I take on many forms, and many names, to say the least. You have all dealt with me in some way or another. I decided to write something positive for once, mostly as a concrete test to determine the extent to which I've been shadow-banned from RUclips. It's become quite clear RUclips/Google are a mission to silence anything they deem 'negative', perhaps in an effort to create a false utopia. I'm actually a white-night, a fighter for justice and free speech, tackling the biggest issues facing the planet and the human race as a whole. BOW TO ME, scum.

    • @MaxxSkywalker
      @MaxxSkywalker 5 лет назад

      @@lonnybulldozer8426 Huh? I was just correcting your spelling, dude. Chill out. You had "profit", which is something else entirely. Nice of you to fix it, and then go into a non sequitur, though.

  • @bilbobeutlin3405
    @bilbobeutlin3405 3 года назад

    dude thats so awsome

  • @arshaddesignverx
    @arshaddesignverx 5 лет назад +1

    Awesome tutorial

  • @robinbrowne5419
    @robinbrowne5419 5 лет назад

    Very nice. Thanks.

  • @rjprmr
    @rjprmr 5 лет назад +8

    This is fantastic but be aware it will max out the GPU on the average system!

    • @alekskenins
      @alekskenins 5 лет назад +7

      You could make a bunch of copies of the entire filter with slightly different parameters using CSS animation keyframes, and alternate between them. This way the browser will only have to render most of the animation once.
      Edit: When I'm back at my computer I'll make a codepen and post it here.

    • @DoctorMandible
      @DoctorMandible 5 лет назад

      @@alekskenins bump

    • @Andrey-il8rh
      @Andrey-il8rh 5 лет назад

      bump

    • @cduran1983
      @cduran1983 5 лет назад

      @@alekskenins could you please 🙏

    • @nickschmitt8594
      @nickschmitt8594 5 лет назад

      @@alekskenins hi

  • @vishaltaywade8069
    @vishaltaywade8069 5 лет назад +1

    Amazing 👌💐

  • @Galya892011
    @Galya892011 5 лет назад

    Cool! Gotta try!

  • @2011BIRR
    @2011BIRR Год назад

    very nice!

  • @fadlanzunima5236
    @fadlanzunima5236 5 лет назад

    Fantastic

  • @RomanticPopPunk
    @RomanticPopPunk 5 лет назад +6

    Would it be better if you just use a gif as background?

    • @RedStapler_channel
      @RedStapler_channel  5 лет назад +8

      never use large gif background. it has extreamly large file size due to inefficient encoding. For example, a 2 MB video background could turn into a whopping 10MB+ in gif.

    • @alimertc
      @alimertc 5 лет назад

      @@RedStapler_channel it has small file sizes with videos that have more static pixels

    • @forgettd
      @forgettd 5 лет назад +1

      The basic way to make such a background is to use a video in mp4 format.

    • @manmanmanichfindekeinennam7613
      @manmanmanichfindekeinennam7613 5 лет назад +1

      I think the point of this Video is to show whats possible with only CSS and HTML. It becomes much more interesting when you have been a developer for +10 years. Its freaking great to see what CSS can do Nowadays. Back then, you had to do stuff like this with flash, a programming language.
      This CSS effect is stunning because HTML is only a markup language, css only a stylesheets language and no one ever expected that html and css would be able get Stuff like this done. This Video shows how easy Webdevelopment has become with html5 and css3. From the programmer perpective is webdev more interesting and fun than ever before.
      But from a practically view is this effect quiete dumb. I cant imagine a single Website which needs something like this. Its only for fun and shouldnt be done for serious business.

  • @024ashutoshsharma3
    @024ashutoshsharma3 2 года назад +1

    I don't know why its not visible when i am trying to run it on the browser, can anyone tell why this happened

  • @MarkoKozlica
    @MarkoKozlica 5 лет назад +1

    You are great! Thx :D

  • @akshaychordia8724
    @akshaychordia8724 5 лет назад +2

    So nice❤️

  • @-JackER
    @-JackER 5 лет назад

    very nice job!

  • @adityalakkad8795
    @adityalakkad8795 5 лет назад

    How I can set as a background in my website and please also provide a mobile friendly interface how to do help l loved your video very very very much

  • @MindsMusing
    @MindsMusing 4 года назад

    Great....U complete Me!!

  • @tofik2450
    @tofik2450 5 лет назад +1

    Nice!

  • @yenenehmulatu5707
    @yenenehmulatu5707 5 лет назад +1

    Respect👍

  • @tfr
    @tfr 5 лет назад

    This is html 6, man, I wish I had 10 rtx titans to compute this. Nice

  • @SK-pp2fj
    @SK-pp2fj 5 лет назад

    Can you say what screen recorder you are using ❓

  • @SecondTremble
    @SecondTremble 5 лет назад +4

    “If you think this is a video back ground, you’re wrong. It’s Chuck Testa

  • @beeurd
    @beeurd 5 лет назад +5

    brb, just changing my name to Jon Snow because I clearly know nothing. 🤯

  • @samuelmatheson9655
    @samuelmatheson9655 5 лет назад +2

    Holy big brain

  • @CrimsonBane
    @CrimsonBane 5 лет назад +1

    Wow, this earned a sub

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

    How to add 3Dpanorina effect in website

  • @TheAnna2511
    @TheAnna2511 4 года назад

    I need a help, I used this code on my website, but I have more elements under this and at the bottom of the page I have a blank space, and when I open inspect page, there I can see svg file... I am new in the web design, so I hope someone know what I mean :D

  • @lingard533
    @lingard533 5 лет назад

    What text editor you are using here??

    • @domnik9062
      @domnik9062 5 лет назад

      Reachester Jala visual studio code

  • @megakiller90qc
    @megakiller90qc 5 лет назад +1

    Can we just put a gif ?

    • @RedStapler_channel
      @RedStapler_channel  5 лет назад

      no, gif at this size and framerate will greatly slow your website loading time.

    • @megakiller90qc
      @megakiller90qc 5 лет назад

      @@RedStapler_channel Oh ! ok thx ! :) btw nice vidéo !

  • @ARTSSSergei
    @ARTSSSergei 5 лет назад +1

    класс!!!!

  • @yishayhazan1040
    @yishayhazan1040 5 лет назад +43

    "HTML/CSS only"
    0:57 i will photoshop..

    • @hnccox
      @hnccox 5 лет назад +26

      He also used a camera to take a photo of the sea

    • @tru3prodigy
      @tru3prodigy 5 лет назад +12

      He also travelled to the location. 😒

    • @jopo6445
      @jopo6445 5 лет назад +9

      This clearly requires a pc and text editor too. Smh

    • @kamrulahsan06
      @kamrulahsan06 5 лет назад +6

      How about electricity?

    • @jayrajz7986
      @jayrajz7986 5 лет назад +9

      yes you better not follow his advice , because it requires a brain too.

  • @pengekcs
    @pengekcs 5 лет назад

    wonder how much cpu cycles (percentage) this effect burns ;) great stuff though!

  • @mnthrld
    @mnthrld 5 лет назад

    It is simple and no need to know css and html,
    Just install SEUS PTGI E9

  • @thereborne5219
    @thereborne5219 5 лет назад +2

    when will u create life into that

  • @ChiemekaNwogu
    @ChiemekaNwogu 5 лет назад

    please reply me. where did you get your own sea image

    • @Virtualmix
      @Virtualmix 5 лет назад +2

      A wonderful device called "camera".

    • @darkillusion9669
      @darkillusion9669 5 лет назад

      Virtualmix 😂😂😂

    • @ChiemekaNwogu
      @ChiemekaNwogu 5 лет назад

      @@Virtualmix I don't have Photoshop on my pc and can't pay for it, any other way to edit the picture , cause you said save it in Photoshop as transparent png

    • @Virtualmix
      @Virtualmix 5 лет назад

      ​@@ChiemekaNwogu Yes, install GIMP, it's a free opensource software as capable as Photoshop. After opening your image in Gimp, go to "Layer > Transparency > Add alpha channel" to set the transparency. After that, export your image as PNG.

  • @burnblue
    @burnblue 5 лет назад

    dope

  • @evakuator8118
    @evakuator8118 5 лет назад

    that's, sorry for my french, fucking beautiful f

  • @qbasic16
    @qbasic16 5 лет назад

    Awesome! I will use this to improve the gore effect (hidden easteregg) on our company's website 😄

  • @zhamshidkaliev
    @zhamshidkaliev 5 лет назад

    woooow

  • @DANNYFIGDESIGNS
    @DANNYFIGDESIGNS 5 лет назад

    Wow.

  • @ChiemekaNwogu
    @ChiemekaNwogu 5 лет назад

    mine isn't working

  • @TheDVDwr
    @TheDVDwr 5 лет назад

    Why not just use a gif ?

  • @xReisk
    @xReisk 5 лет назад +1

    77 people were not able to link the CSS file into their html.