Can I recreate Stripe’s text effect?

Поделиться
HTML-код
  • Опубликовано: 2 июн 2024
  • Stripe has a cool text effect, so let’s dive into how they created it, and see if we can’t try to copy it!
    🔗 Links
    ✅ Stripe’s home page: stripe.com
    ✅The canvas gradient animation by Tiffany Rayside: codepen.io/tmrDevelops/pen/vO...
    ⌚ Timestamps
    00:00 - Introduction
    00:25 - Getting started
    01:37 - The background gradient animation
    01:41 - Fast motion starts
    01:54 - Fast motion ends
    03:15 - Fast motion starts
    03:37 - Flashing starts
    03:42 - Flashing ends
    03:46 - Fast motion ends
    03:47 - Positioning the background
    06:53 - Trying a simple solution
    08:06 - Seeing how Stripe did it
    10:55 - Setting up the effect - first attempt
    16:22 - Setting up the next - getting it right
    24:36 - Improving readability with a custom property
    26:20 - Do you like this style of video?
    #css
    --
    Come hang out with other dev's in my Discord Community
    💬 / discord
    Keep up to date with everything I'm up to
    ✉ www.kevinpowell.co/newsletter
    Come hang out with me live every Monday on Twitch!
    📺 / kevinpowellcss
    ---
    Help support my channel
    👨‍🎓 Get a course: www.kevinpowell.co/courses
    👕 Buy a shirt: teespring.com/stores/making-t...
    💖 Support me on Patreon: / kevinpowell
    ---
    My editor: VS Code - code.visualstudio.com/
    ---
    I'm on some other places on the internet too!
    If you'd like a behind the scenes and previews of what's coming up on my RUclips channel, make sure to follow me on Instagram and Twitter.
    Twitter: / kevinjpowell
    Codepen: codepen.io/kevinpowell/
    Github: github.com/kevin-powell
    ---
    And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!

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

  • @darkbluebossa
    @darkbluebossa Год назад +172

    Cool! I would love to see more ´real world´ examples. Sometimes I enter in these inspiration websites and I don´t even know the name of the effects some websites are using (it´s hard even to search for tutorials)

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

      💯

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

      Same here

    • @justinjesalva8665
      @justinjesalva8665 Год назад +6

      My general rule is if it's a 3D effect, it's Three.js and if it's cool animations, it's GSAP. Most of the time it's right. 😅

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

      @@justinjesalva8665 good tip. Never learned GSAP, but I see there are several videos about it.

  • @whitetoggled5546
    @whitetoggled5546 Год назад +46

    CSS never ceases to amaze me, the amount of things you can make with it, the only limitation is your curiosity

  • @UrbanJackJr
    @UrbanJackJr Год назад +71

    The reason the codepen js worked is because the code wasn't in strict mode. You used vite and your js file was a module, and modules are strict by default.

    • @KevinPowell
      @KevinPowell  Год назад +16

      ah, yeah that makes sense, thank you :)

  • @okawashingo2079
    @okawashingo2079 Год назад +16

    Reverse engineering is always insightful. Thanks, Kevin, as always!

  • @ThatRobHuman
    @ThatRobHuman Год назад +6

    a mix-blend-mode of overlay is often a good starting point. It has an appreciably effect when the source layer is practically any color (except mid-tone grey).

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

    Your ability to find mistakes in your approach before you even start writing code is super awesome!...it's like having a CSS compiler on your head. Great content as always ♥️

  • @thec-m
    @thec-m Год назад +2

    This channel popped up in my recommendations and I'm glad it did. I have limited CSS knowledge, but this video was surprisingly relatively easy to follow.
    I'd be interested in seeing more videos where you reverse-engineer effects on other sites. CSS can be overwhelming, especially when viewing source code on professional sites, but this makes it easier to understand.

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

    I love how u told us in the beginning for the flashing lights. I felt like being cared for ❤

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

    Man, I really appreciate you making videos like this. Great work 👏

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

    As a beginner this video blew my mind, thanks Kevin, please keep doing this kind of videos.

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

    Loved it! Need more like this🤤

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

    Amazing content as usual. Aweome work Kevin!

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

    Loved this video, would love to see more like this!

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

    I think the reason why console was showing x & y -> not defined is because you have to define (use let) inside the bracket syntax of the for loop instead of defining those variables in the global scope. Nice insightful video btw Kevin!

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

    You're an absolute beast !

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

    Really fun video Kevin! Hope to see more real world CSS reverse engineered!

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

    Loved the new setup 👍

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

    I would love to see such amazing contents....great stuff ❤️❤️

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

    Absolutely amazing

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

    Beautiful! You're a true wizard Kevin. I will definately use this somewhere!

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

    Very clever solution!

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

    Thank you for your video! Please keep making this sort of videos.

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

    Love it, please make more!

  • @mr.truzzell
    @mr.truzzell Год назад

    Wow! Really like your content and how you presenting it. Thank you!

  • @barmolino
    @barmolino 4 месяца назад

    Nice last few month I am hooked to the animations

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

    I always learn so much from these videos, Kevin is goated

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

    I like the new layout. Also, thanks for the flash warning :)

  • @SuperYoda7
    @SuperYoda7 25 дней назад

    This is so awesome!!!!! I built something very similar using this tutorial for my portfolio website. The result amazes everyone! Thank you so much for sharing.

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

    Some great nuggets in this video, thanks for showing your process a bit, too. It's great to see experts struggle like the rest of us from time to time :)

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

    Thank you Kevin, I found this impressive and inspiring.

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

    Sooo cool. I love this... do more of these real page tries

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

    Very useful to see how you approach this, Kevin.

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

    Brilliant! Thanks!

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

    Wow, great video!

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

    Great problem solving skills. Great way of testing your css knowledge by trying to apply real world effects like these

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

    Yes, more like this please.

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

    Entertaining episode. And, it looks so easy when you do it ;)

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

    very cool! thanks a lot.

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

    Amazing content!

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

    Love it❤

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

    great video!

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

    Thank you for making CSS accessible for the younger generation of developers!

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

    neat. it's fun to go through this process. I imagine sandwiching the color wash between the texts might be more direct. top with the color burn and the bottom being 100%. will experiment when I get time.

  • @Mr.RobotHead
    @Mr.RobotHead Год назад +2

    I really love videos like this, and I wish I had more time to putz around try to replicate interesting designs I find on the 'net. I used to learn so much doing that.

  • @filipf.5797
    @filipf.5797 Год назад +3

    Like it, I think this backward-enginnering if we could call it so is great way how to learn and practice new things that are nice at the end. please do more videos like this :D Do more interesting modern pages like this .... :D 🥰

  • @kushagra-aa
    @kushagra-aa Год назад

    greattt!!!

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

    wow hahah this is super cool

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

    That was fun to watch and would love a bit slower paced so that I could follow along and recreate. Either way, this has been saved into my education folder to go over again.

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

    Thank you Kevin

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

    If I like this type of video? No.... I LOVE IT! ❤
    I tried this myself only a couple of months back, and came up what was close but no there.
    Btw. For me, it's way easier to follow your code when it's not zoomed in that much.

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

    Please make more of these real world examples!! 😀

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

    Thanks!

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

    Thanks ❤️

  • @thomas-gk9jp
    @thomas-gk9jp Год назад +2

    Hey Kevin, maybe you could delete some « headache » by using another blend mode, color burn is really aggressive imo.
    Maybe the best way to achieve such an effect would be to open photoshop or another software do the effect and replicate from it on css ?!

  • @vladislav.c
    @vladislav.c Год назад

    Thanks a lot

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

    Brilliant @

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

    Wow, that was basically what I expected it to be.

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

    Wow, stripe are amazing who the bananas wrote all that JS to get that great effect!

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

    So cool. Got to know more CSS properties.
    Can't we use overflow: hidden properties for the trick?

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

    Really cool! 'canvas' is new to me tho .. 🤔

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

    AMAZING!, Really love this video. Pls Pinterest Home Page Effect 🥺❤️

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

    I would love a series on this where we look at cool effects of different websites and reverse engineer the,

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

    Great video. Maybe make a video with an advanced slider (arrows, navigation dots, autoplay, some animations, transitions). I know it can last more than one hour or two because there is a lot of things to explain but I think it could be the best explanation on youtube.

  • @purringdemon
    @purringdemon 3 месяца назад

    Hey Kevin, Is there a codepen for your final code? All I see is the link to the animated gradient background you used. TIA! Love your videos!

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

    cool !!!!!!!!!

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

    cool

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

    the reason that x variable didn't work at your js file is strict mode. all type="module" js files run on strict mode and you can't use an undeclared variable in strict mode. but in codepen it wasn't any strict mode.

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

    hi sir what application did you use to really automaticall rrload your design?like on your right side? im curious😶

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

    Did same for a project 👍

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

    Hi kelvin...cool video for real...Can i ask you something....cool you make a video about complex html table and their responsive view?For example introducing nested table?

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

    do you have a video on isolate? was the only bit I didn't understand 😕

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

    This example is really cool can you make a video on css tricks home page there page grid layout is really awesome

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

    0.5 took you to ludicrous speed 🤣 Amazing debugging skills though 🥰

  • @farhan-app
    @farhan-app Год назад

    Please try the stripe menu next!

  • @vivekkumar-pc1xy
    @vivekkumar-pc1xy Год назад

    sir, one day i'm going to meet you. You are awesome as CSS

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

    Hi! I'm only starting on web dev, I've recreated this following the video and seeing it perfectly on the VSC preview, but for some reason, opening this locally with Chrome/Safari, etc. doesn't show the effect. Is this related to some JS browser permissions?

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

    PLEASE DO THE STRIPE MOCKUP ANIMATION CSS !!!!
    No one has ever even tried to explore that AREA in the STRIPE website

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

    hey kevin i want to start JS so I have learned many things in html and css except cssgrid which I have not learned yet i don't know why but I have built many projects in flexbox and media query
    So is it necessary or mandatory?
    sory my englisg is not good

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

      I'd say grid is pretty important these days, but that shouldn't stop you from getting into JS!

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

    Cool thanks I don't know about the others but I really want this type of videos

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

    Why do you but the * selector on the pseudo-elements.? I thought that the * selector works for all the elements, even the pseudo-elements.

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

    Please show us how they did the navigation menu.

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

    What plug-in do you use for writing divs with classes really fast?

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

      It’s a Vsc extension

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

      It's called Emmet, it's built into VS Code, and you can get an extension for other browsers.

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

    I know you researched this before doing the video so would have taken longer, but still. I can spend a whole day building and tweaking a complex hero design 😂. It would be interesting if you mentioned how long the whole thing actually took you?

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

    Dude that’s actually pretty sick. You got a discord channel ?

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

    Fun fact: You can play with the gradient animation in detail if you do the Konami code on the stripe homepage.

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

    Does anybody have any idea how to re-create stripe's "Modular Solutions" section? It's like connecting the icons, and when you hover over an icon, it shows its color.

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

    can we get a tutorial for the wave effect of the stripe page

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

    You do know an html elements can have multiple classes, right? You were using custom attributes when the semantic version of that appeared to be multi-classing to me.
    (Code example:
    A
    B
    .mainclass {
    font-size: 5rem;
    }
    .mainclass.subclass {
    color: red;
    })

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

    Cool effect! But for me the most amazing moment here was already 6:26. Kevin needs 2 seconds to realize that this weird offset is caused by collapsing margins. 2 seconds!

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

    Hi, Kevin! Can you also take a look at the State of CSS 2022 survey? I found some many new properties and styling techniques I have never heard.

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

      I already took some notes for future video ideas while going through it :D

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

    💖

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

    I was just looking at the stripe website not to long ago wondering how this was done lol

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

    Ok i tried to implement this in a react app im working on but the canvas is super blocky and is literally 32x32 pixels. how do you get it to not do that? Neither the original codepen or this vid have it so blocky

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

      if anyone runs into this, the solution was setting image-rendering: auto

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

    I just checked the Stripe page, and apparently the images on the homescreen are made with HTML elements and aren't pictures
    Is this easy to do? Maybe remaking this could be another video

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

      I saw that too and was wondering why in the hell they'd bother with that, lol. An SVG and be done with it? Maybe someone was bored at work and had some time to kill, lol.

  • @howling-wolf
    @howling-wolf Год назад

    A audio warning when stuff like flashing images and so on appear would be nice i guess. Cuz I can imagine the people affected by it just looking away. And then they dont know when its over.

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

    Mix blend?

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

    13:29 Don't use innerText...
    15:05 You can use rgba color?

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

    you guess t is time? bro read the code you just pasted. R G B is red green blue, we animate every time recursively by asking it to run() everytime an animation frame is ready, t is affecting how much we change the colour between each frame. i cba to apply my brain more to figure out how this maths generates the colours and im bad at css3 gradiants and shit but u get the idea. for the typography and stripe code, 2 layers stacked to 0.3 is going to let some colour through, but colour + 2 stacked on grey will show less white bg through and look better. this all makes sense the moment i see it tbh

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

    Nice debunking of a Wow effect U.I. 😄

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

    It is created by Benjamin De Cock he is world's best designer developer and W3C member, his works are so inspiring