You Need This Hover Effect On Your Site ASAP (CSS / JS)

Поділитися
Вставка
  • Опубліковано 2 лют 2025

КОМЕНТАРІ •

  • @Hyperplexed
    @Hyperplexed  2 роки тому +532

    A couple of notes:
    1. The "card-border" element can actually be replaced with an "::after" pseudo element on the "card" element, removing the need for an extra div.
    2. On the "card-content" element, instead of setting the height/width to calc(100% - 2px) and setting a margin of 1px. You can set "position: absolute" and "inset: 1px" and it will achieve the same border effect in a cleaner way.
    Learned this after making the vid and have updated the CodePen accordingly.
    Thanks for watching!

    • @diegognoatto8706
      @diegognoatto8706 2 роки тому +4

      nice stuff

    • @labhamjain3915
      @labhamjain3915 2 роки тому +6

      also don't forget to add pointer-events: none; otherwise card won't be clickable because of z-index

    • @AvWoN
      @AvWoN 2 роки тому +1

      Love your videos. One question, why not simply use padding on parent to content instead of calc-2px or absolute + inset? Padding is so much more useful than absolute because the content can decide its size that way and the parent will auto adjust correctly, or the parent can set a size and child can follow, work both ways. Is there something wrong with padding? Seems so much easier that I feel like I am missing something? I just implemented this with padding.

    • @codyrap95
      @codyrap95 2 роки тому +3

      Did you just refactor the content of a video basically? 😂 Thanks for the video, the tricks you showed are really useful.

    • @Mr-Raptor
      @Mr-Raptor Рік тому

      i was just thinking about ::after

  • @arunsp767
    @arunsp767 2 роки тому +1145

    Love how you wrote half JS logic only relevant to the current task and changed it later, instead of just writing the final one and going "you will understand this later in this tutorial".

    • @WyzrdCat
      @WyzrdCat 2 роки тому +31

      Reading first half I thought you were being sarcastic, was gonna be like BRUH 😂

    • @ahall9839
      @ahall9839 Рік тому +20

      @@WyzrdCat Is that what you were gonna be like? Bruh? Bruh is what you were going to be like?

    • @Brotality
      @Brotality Рік тому +1

      @@ahall9839 shut up

  • @kithenry
    @kithenry 11 місяців тому +11

    Man's skill so clean I checked his youtube to find out how long it took him to be this good. Couldn't believe it was 2 years, even when the oldest video on there is from last year. So, went to his codepen, moved to the oldest pen, then looked at the comment section, the date? 6 years. Maan that's quite some time, salute the diligence.... could be longer coz even the oldest pen was top notch. CSS demi god we have here...

  • @dom8429
    @dom8429 2 роки тому +240

    that's really cool. stuff like makes it feel so much more like a native app than a website I think. also love that the video isn't too long. great job!

    • @Hyperplexed
      @Hyperplexed  2 роки тому +30

      For sure, glad you enjoyed it!

  • @alexwallsdev
    @alexwallsdev 2 роки тому +387

    Watching you create complex design with such ease and explaining each step is very helpful
    I would suggest taking your time in some other videos to explain some steps more easily, appreciate the content
    Keep it up!

  • @AlekEagle
    @AlekEagle Рік тому +3

    I really appreciate the small bite sized steps you're able to break everything down into, and instead of showing the end code and saying "we'll get to this later, for now it just exists"

  • @IvanIvanov-ep8zo
    @IvanIvanov-ep8zo 2 роки тому +68

    You can take this further by adding dynamic text-shadow that will change its position relative to the source of light (move your mouse to the right, and the shadow moves to the left), and bumping up the shadow blur the further you go from the center

    • @foqsi_
      @foqsi_ 2 роки тому +4

      That would be cool.

    • @sebastiangudino9377
      @sebastiangudino9377 Рік тому +19

      That might be overdoing it. The effect is very minimal, it's supposed to be very light, not to be the focus of your attention.
      That being said, that's a really cool idea for a different kind of website

  • @Sneaadler
    @Sneaadler Рік тому +5

    thanks you for shedding a light on this design

  • @403gtfo
    @403gtfo 2 роки тому +3

    Old school flash effects are back baby!!
    Love it :D

  • @skoodath
    @skoodath 2 роки тому +18

    These videos are highly addictive and motivating! Great job!

  • @theonly.lightfall
    @theonly.lightfall 5 місяців тому

    It's such a beautiful yet simple effect. Thanks for sharing how to make it.

  • @alexandruboscu5094
    @alexandruboscu5094 Рік тому

    you just blown my mind, so simple but in the same time, so complex

  • @tyfine99
    @tyfine99 Рік тому +1

    The fact you are explaining exactly what you are doing is helping me learn much faster!! Earned like comment and a sub from me! Love these kinds of videos, keep it up!

  • @aminmahmidi1076
    @aminmahmidi1076 2 роки тому +1

    I really loved how you explain while writing the code, that was fun to watch

  • @ozzyfromspace
    @ozzyfromspace 2 роки тому +13

    you're a frontend god 🏆 your implementation is super smooth, and you're an eloquent instructor. keep it up bro

  • @subashkarki676
    @subashkarki676 2 роки тому +1

    why is this channel so underrated

  • @fuzzy-02
    @fuzzy-02 Рік тому

    That's why I love programming, gives me the same feeling I had when I first saw a magic trick as a kid, then got shown the behind the scenes to it.
    I was like "I want to be that smart"

  • @scout4808
    @scout4808 Рік тому

    This video brought back my motivation to keep learning web development. Thank you! The content is amazing and to me you code like a master

  • @themightysapien
    @themightysapien 2 роки тому +5

    Quick and precise like the way I love it.

  • @yopp1234
    @yopp1234 2 роки тому +1

    What an elegant video, great job.

  • @darkfrontier
    @darkfrontier Рік тому +3

    Learned more in 5 minutes than a semester of CS

  • @Steveplays28
    @Steveplays28 2 роки тому +1

    Awesome work Hyperplexed, looks super cool and convincing!

  • @DeepakKamat
    @DeepakKamat 2 роки тому

    My man deserves a like and a subscribe.

  • @AlvinIsChipmunk
    @AlvinIsChipmunk 2 роки тому

    I am glad I found your channel!!! Great work!

  • @useruser-qo4mz
    @useruser-qo4mz 2 роки тому +4

    love your tutorials! keep up the good work!
    🔥🔥

  • @my_master55
    @my_master55 Рік тому

    Bruh, I'm not even a frontend dev, but ur vids are fire, ngl 🔥

  • @ChrisCoyier
    @ChrisCoyier 2 роки тому

    Thanks!

    • @Hyperplexed
      @Hyperplexed  2 роки тому

      Thank you so much! Glad you enjoyed it!

  • @johnmendoza5398
    @johnmendoza5398 9 місяців тому

    Beautiful video, I was looking for it a lot.

  • @ethioapps836
    @ethioapps836 2 роки тому

    i recently saw this feature on windows 11 and i was wondering and idk how but youtube recomended this content. and im rly glad i saw it . apprecaite it man . good job

  • @mayukhchanda5805
    @mayukhchanda5805 2 роки тому +7

    This is amazing. Thank you. Microsoft uses the same animation for their desktop notifications tiles.

  • @arhabersham
    @arhabersham Рік тому

    Mind-blowing effect and explanation!

  • @thedebapriyakar
    @thedebapriyakar 2 роки тому

    so glad I found this channel man
    you're going to blow up soon enough

  • @ridwanajibari4443
    @ridwanajibari4443 2 роки тому +1

    as a backend guy. this is so magical.

  • @__VishalSharma
    @__VishalSharma Рік тому

    You are the magician of CSS.

  • @GAGANDEEPSINGH-fv2rt
    @GAGANDEEPSINGH-fv2rt Рік тому

    Your voice is amazing it's like listening high quality podcast

  • @joni500para
    @joni500para Рік тому

    this is beautiful, clear and understandable

  • @bigmistqke
    @bigmistqke 2 роки тому

    Damn. Very nice one. Long time ago i learned something new from a css tutorial video.

  • @VELIXYZ
    @VELIXYZ Рік тому

    I just needed this. Thank you so much

  • @kushangshah-be7hn
    @kushangshah-be7hn Рік тому

    OMG !!! That was mind blowing!

  • @myabdi4
    @myabdi4 Рік тому

    You, sir, are a genius.

  • @casbah4200
    @casbah4200 2 роки тому

    Waa I noticed this effect in my windows 10 calendar and I was like it's really cool hover effect sad that there's no tuto about this, then you made a video about it thank you !

  • @silenux7419
    @silenux7419 2 роки тому +1

    Such great content.
    Thanks UA-cam for recommending me this.

  • @NOTHING-en2ue
    @NOTHING-en2ue Рік тому

    very well tutorial i was looking for this, thanks ❤

  • @amirreza3638
    @amirreza3638 11 місяців тому

    Love your content, keep it up ❤

  • @ChallengeAll
    @ChallengeAll Рік тому

    Just saw thesame style in my window 10, and out of no where and see this, wow thank you 😂

  • @ruzlansyahputra1729
    @ruzlansyahputra1729 2 роки тому

    Woah, great video mate!

  • @baraahalabialt
    @baraahalabialt 2 роки тому

    U just earned a sub man. awesome content, keep it going

  • @letme-cee
    @letme-cee Рік тому

    Wow thats actual Good content! Subscribed.

  • @Novacification
    @Novacification Рік тому

    You explained it well and the final code is very understandable but I'm not sure I agree that the effect is "pretty simple" :)

  • @doolee5704
    @doolee5704 Рік тому

    Very well done tutorial, props

  • @beatcollection7314
    @beatcollection7314 11 місяців тому

    GREAT CONTENT. happy to discover your channel. i loved it🤩🤩

  • @TheEndOfMadness
    @TheEndOfMadness 2 роки тому +1

    Neat! You could make so many pens and tutos out of that source website. It's pretty amazing.

  • @nailinnnr
    @nailinnnr 2 роки тому

    thanks, it actually let me through so i could download it.

  • @approxahmed
    @approxahmed 2 роки тому +47

    I have noticed that Windows 10 has a similar effect in its UI and wanted to someday make it on my own, I am learning HTML and CSS (will learn JS after getting more familiar with CSS) currently and maybe in the future I'll do it using them too :)

    • @system8877
      @system8877 2 роки тому +10

      Dont waste too much time in html and css..just make sure you have the fundamental in your arsenal..then as you make your own stuff .you upgrade em..just like your character in-game

    • @Joao-oo8yj
      @Joao-oo8yj 2 роки тому +2

      yeah man. i've too noticed that windows interface has this design style, and i've ever thinking in create something identical. But if you will make this some day, know that this kind stuff can maked different ways. dont stay stuck only at video tutorials. good studies :)

    • @damar1967
      @damar1967 Рік тому +3

      Windows did it first actually, sad they didn’t get enough credits

    • @sebastiangudino9377
      @sebastiangudino9377 Рік тому

      Hi Dude, I would recommend to not think of webdev as you seem to be doing.
      The idea is not to master HTML, then go to the "next stage ", and master CSS, then go to the next stage and master JS. That is going to hinder your learning greatly
      Instead just learn the very basics from each one, and make a crude website. It's likely gonna be terrible. But then you can say: "How can I make it cool now?" And get ideas, you will then do your research and understand the features of the languages that you need to realize said ideas. And the beautiful thing is the web, is that there are hundreds of ways of archiving a particular objective.
      So what would I recommend? I would recommend you to go to Figma (Hell, go to PowerPoint even) and design a website layout. Then turn it into code, and then slowly add functionality to it. There you will really understand the type of things you will need to learn, and put all of the right tools to the test. Improving greatly in the process

    • @akippnn
      @akippnn Рік тому +1

      ​@@variables6700 when it's applied everywhere, you start adding more visual clutter and it makes things hard to read. I think it could've been better if it was tweaked at least rather than be removed.

  • @hanzofuma
    @hanzofuma 2 роки тому

    Finally i found how to do the windows 10 hover effect

  • @SwaggyProfessor
    @SwaggyProfessor Рік тому +25

    For anyone looking to have any interactable elements inside the cards, add "pointer-events: none;" to the "before" and "after" selectors. Otherwise if you have a button inside a card it will not work. Cheers!

    • @fancieme1359
      @fancieme1359 Рік тому

      You are a life saver thanks

    • @DEBO5
      @DEBO5 Рік тому

      Yea usually I would set the z index of the pseudo element to -1 but it’s better your way

  • @cmaxkratos
    @cmaxkratos 2 роки тому

    Great work mate!

  • @Nanagos
    @Nanagos 2 роки тому

    Windows 10 also uses this effect and I always loved it.

  • @tovape
    @tovape 2 роки тому

    I've done this not so long ago and looks dope

  • @WeedmanPro
    @WeedmanPro 2 роки тому

    I've always wondered how it works in windows 10 tiles. I got the answer now.

  • @raymondmichael4987
    @raymondmichael4987 Рік тому

    Like how a windows calendar from the task bar , get highlighted when you have a date

  • @sebcuadros
    @sebcuadros 2 роки тому

    Awesome video, thanks for going step by step 🙏

  • @nguyenlong1906
    @nguyenlong1906 Рік тому

    Thank you so much

  • @vladimirlopez6005
    @vladimirlopez6005 Рік тому

    that is awesome! thanks!

  • @martizong
    @martizong 2 роки тому +1

    Ok look, the video is great but you sound like you're speaking to me from the gates of heaven. 😭😂

  • @keven.menard
    @keven.menard 2 роки тому

    Phenomenal tutorial!!

  • @dankcellarstudio
    @dankcellarstudio Рік тому

    You got a sub, cool stuff

  • @mafhper
    @mafhper 2 роки тому

    Thank you UA-cam for me bring to me this channel 😎👍

  • @cantTouch948
    @cantTouch948 Рік тому +4

    all of us trying to center just one div and bro just centered six like it was nothing

  • @martinn1071
    @martinn1071 2 роки тому

    mind-blowing! thanks for sharing

  • @dimrachkool3336
    @dimrachkool3336 Рік тому

    Huge thank you!

  • @chregig7967
    @chregig7967 2 роки тому +17

    Yes, but how do you center a div?

  • @BarcelonaMove
    @BarcelonaMove Рік тому

    I am mindblown right now

  • @markusTegelane
    @markusTegelane 2 роки тому

    that’s actually pretty clever ngl

  • @harrisoncreates
    @harrisoncreates 2 роки тому +2

    I can proudly say I was here before the 1 million sub mark. Your videos are absolutely insane, you're going to go much farther before you know it!

    • @SpukaMC
      @SpukaMC 2 роки тому +1

      Same 😎

  • @danisk6368
    @danisk6368 Рік тому

    Superb. very relatable that I wanted to know

  • @sampletext69420
    @sampletext69420 2 роки тому

    Damn, Fluent Design

  • @tmagrit
    @tmagrit Рік тому

    Beautiful ❤️

  • @quintonrichards4805
    @quintonrichards4805 Рік тому

    Wow, this is just wow.

  • @diassagatov2195
    @diassagatov2195 Рік тому

    learned a lot, tnx!

  • @ghoritauheed7182
    @ghoritauheed7182 Рік тому

    you definitely earned a sub man ! also btw do you by anychance have any tutorails starting from the basics of html,css and js....?

  • @KM-zd6dq
    @KM-zd6dq 2 роки тому

    you are a wizard to me

  • @youssefkhaled1189
    @youssefkhaled1189 8 місяців тому

    Thank you!

  • @ankitsrivastava3972
    @ankitsrivastava3972 Рік тому

    Just amazing 🎉

  • @andreadubruel9152
    @andreadubruel9152 Рік тому

    Teacher : don't worry the exercise isn't so complicated
    The exercise :

  • @santanu29
    @santanu29 Рік тому +1

    How hard is CSS?
    YES.
    I love your videos tho.

  • @Emil_Egeland
    @Emil_Egeland Рік тому +2

    Him: Its actually pretty simple.
    Me: Ok this is gonna be interesting..
    *30 seconds later*
    Me: Wat is dis? How me supposed to do dis?

  • @aviliomoz
    @aviliomoz 2 роки тому

    I'm so used to using Tailwind CSS for everything that I've forgotten how cool it is to write pure CSS! Thanks for this excellent tutorial!

  • @pwishi7796
    @pwishi7796 Рік тому +1

    The javascript doesnt seems to work for me? any idea why? everything seems normal but when I change background: radial-gradient(800px circle at 100px 100px) to var(--mouse-x) (--mouse-y) its not working? Any help? thanks

  • @HiImKyle
    @HiImKyle 2 роки тому

    I wish cool stuff like this didn't need JavaScript

  • @yassinaouini3044
    @yassinaouini3044 2 роки тому

    Thank you so much this helped a lot!!!! You saved my life

  • @lewisone
    @lewisone 2 роки тому

    Jesh. Brilliant.

  • @isopodgaming
    @isopodgaming 2 роки тому

    Microsoft thought they were so slick in 2015 with this effect

  • @YuriG03042
    @YuriG03042 Рік тому +3

    reading all the comments hurts my brain. single digit IQ individuals asking for what's the IDE when the description has a link, the video constantly displays "PEN SAVED", the description mentions it's CodePen and there are ALREADY other comments asking the same thing. if you can't do the very basic of reading (video, description, pinned comment) or research (reading other comments), you really won't have a successful career in software development

  • @electricindro2236
    @electricindro2236 2 роки тому

    Amazing 🤯

  • @Jorgeee
    @Jorgeee Рік тому

    Could someone please explain why he did "width: calc(100% - 20px);" on the .cards element?

  • @blackndmild246
    @blackndmild246 Рік тому +1

    each time i try to emulate this my javascript section does not work, html and css files are fine but my mouseover to highlight just wont work.

  • @SuperMBARutgers2013
    @SuperMBARutgers2013 2 роки тому

    Thank you.

  • @Bonnie39
    @Bonnie39 Рік тому

    Literally the Windows 10 UI

  • @ustav_o
    @ustav_o 2 роки тому

    learned a lot more in 5 minutes than 3 hours of boring css classes