Тёмный

Create an animated pop-out effect // HTML & CSS 

Kevin Powell
Подписаться 915 тыс.
Просмотров 69 тыс.
50% 1

Sometimes you come across a fun effect on a website and you want to recreate it, and that’s exactly what I did for this video! Using my dev tools, I figured out how they set things up and made a fun hover/pop-out effect, and while I didn’t copy how they did it, I used it to figure out a few steps along the way.
🔗 Links
✅ Mikael Ainalem’s codepen: codepen.io/ainalem/full/QWGNzYm
✅ My video on Emmet: • Use Emmet to up your H...
⌚ Timestamps
00:00 - Introduction
00:30 - Exploring their code with my DevTools
01:04 - What I am starting with
01:49 - Writing the HTML
03:17 - Overlapping the images and getting them the right size and shape
07:35 - Hiding the content on the bottom
12:56 - Adding the animation
#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 RU-vid 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!

Опубликовано:

 

7 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 85   
@ENBYSS
@ENBYSS Год назад
Honestly these videos are the best for learning CSS. I just watch someone who's very experienced with CSS flex their knowledge, and I get to take notes and learn from someone's wisdom. I'm real good at JS but I've been meaning to focus more on CSS since it feels like some magic can really happen when you get good enough.
@abdulsalphan
@abdulsalphan Год назад
At the start of this video after you explained the end result, I myself thought of how I would do it. Glad to see that I visualised exactly what you just did. When I saw the clip-path on their code, I went "Thatcould easily be wrapped in a container, given a border radius and hide the overflow". I can't express how proud I felt when you, my master, do the exact same thing.😭 And, I would have given the top image position: absolute, instead of the background one.
@bharathasalli6129
@bharathasalli6129 Год назад
Check this ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-t2zOwetkxWE.html
@user-xd7zk1pw5y
@user-xd7zk1pw5y 11 месяцев назад
I've always stayed away from CSS "goble-de-goop" until I watched your videos. You make it easy to decipher, now in 2 weeks of casually watching I'm a legend at CSS ( in my own head ). Now its actually fun. Thanks Kev, LEGEND
@1909jaya
@1909jaya Год назад
Hi Kev! I realy love your work. Thank you for being such an inspiriration!! You really are The King of CSS!! 🙌 Couple days ago I saw your short video about a required minimum that every CSS document should have in order to function properly. It was a good idea to make that video and people was hungry for more of that. Good job!!
@zaksta
@zaksta Год назад
I love watching you enjoy CSS being difficult. Thanks for the content mate!
@prayagprajapati8846
@prayagprajapati8846 Год назад
I just noticed Kevin got a pixel watch. Finally found someone who bought it
@KevinPowell
@KevinPowell Год назад
Yeah, I'm liking it so far :)
@MyurrDurr
@MyurrDurr Год назад
I'd love one but the battery life seems pathetic for the price ;_;
@prayagprajapati8846
@prayagprajapati8846 Год назад
@@MyurrDurr yeah that does seem to be an issue but it is still a good option
@JuanMoisesTorrijos
@JuanMoisesTorrijos Год назад
"I'm just trying to center myself". Aren't we all, Kevin? 😄
@alex-pattison
@alex-pattison Год назад
This was great Kevin! Please keep this type of video coming. Thanks!
@petarkolev6928
@petarkolev6928 Год назад
Thanks, Kevin :) Cool vid! Have an amazing Holidays, cheers!
@carloautor
@carloautor Год назад
I have learned so much from your videos, Kevin. Thank you!
@nataliakaraseva8630
@nataliakaraseva8630 Год назад
This is so cool! Thank you for clear and interesting explanation!
@lachee3055
@lachee3055 Год назад
Kevin is such a chad he centres a div without even thinking about it
@andreh.9300
@andreh.9300 Год назад
Awesome exercise! I love finding inspiration just browsing around. Thanks for sharing! Most of my CSS knowledge has come from watching your channel. 😄
@cscs6587
@cscs6587 Год назад
I love this projects. I learned a lot. Thank You Sir
@ilirbeqiri253
@ilirbeqiri253 Год назад
Wish you have been my CSS teacher since from my beginnings. Outstanding Video
@adeisaac
@adeisaac Год назад
Fun project it was, thank you again
@jahanzaibhaider5330
@jahanzaibhaider5330 Год назад
This was amazing . I got to learn some new ideas from this video....Thank you!
@naezy316
@naezy316 Год назад
This is an awesome teardown
@maziasty
@maziasty Год назад
This was really cool. Thanks!
@worthex_2
@worthex_2 Год назад
The fact I understand how css work for things like these gives me hope
@shahzaib715
@shahzaib715 Год назад
Hi Kevin, your way of teaching is so awesome
@samueloliveira4465
@samueloliveira4465 Год назад
I'm from Brazil and I really enjoy watching your videos 🇧🇷
@wpeasy
@wpeasy Год назад
Great walkthrough. Looking forward to your CSS Rembrandt :)
@aubisoka
@aubisoka Год назад
looks cool,... i wil give it a try!
@kylevandeusen
@kylevandeusen Год назад
🙌 love this one!
@leptopan
@leptopan Год назад
i love your videos so much sir, your explanation very easy to understand. thank you 😊
@sarahsarieddine4046
@sarahsarieddine4046 Год назад
Wow amazing video amazing work and amazing instructor 👍🏻👍🏻👏👏
@techmentormaria
@techmentormaria Год назад
This makes me want to build web again :D Thanks for sharing!
@gwemula
@gwemula Год назад
The combo of inset and margin-inline kinda blew my mind, ngl
@Lashistoriasdelilith
@Lashistoriasdelilith Год назад
super cool!
@RichardTran
@RichardTran Год назад
Hey Kevin, I love this little effect you discovered. WIth these scale transforms, I was wondering if you could do a video on performative costs on different effects. I'm currently dealing with a problem where I have a lot of overlapping transforms that is having some issues and its hard to figure out how to plan a design that isn't "too much"
@carloson9830
@carloson9830 Год назад
Thanks 🙏👍
@DanielPerez-fm9vy
@DanielPerez-fm9vy Год назад
Really good stuffs as always Kevin. I would have use a bit different approach to avoid "recent css rules" like aspect-ratio thou. I would go with the circle image (already with a 1x1 aspect ratio) with relative positioning to reserve the area required by the component and a padding top to create the white space on top. Then the person picture with absolute positioning would be easier to handle.
@Maddy-ge5rg
@Maddy-ge5rg Год назад
Love your videos
@sawzarnilinhtay5551
@sawzarnilinhtay5551 Год назад
Awesome 👍😎
@pedroseverino6248
@pedroseverino6248 Год назад
you are the best thanks for exist :D
@sulaimanshabbir
@sulaimanshabbir Год назад
Thank you kevin
@FredUA
@FredUA Год назад
I think the approach with the grid is better than with position: absolute and z-indexes, IMHO
@jovitakakia814
@jovitakakia814 Год назад
Thank you Kevin, you are my inspiration for learning coding. I followed you to the end and placed my completed project on netlify. But when I copy the picture and place it else where I get only the `person__img` and not the `person__circle`. HOw do I group the 2 images?
@daveturnbull7221
@daveturnbull7221 Год назад
One of the things I do quite often is look at the underlying code on pages to see what javascript they are using to do things and then go read up on the various bits to try and see exactly how they work. Never really thought about applying that to the styling though.
@ukeshrestha
@ukeshrestha Год назад
Just curious how do you view the javascript code?
@daveturnbull7221
@daveturnbull7221 Год назад
@@ukeshrestha using the devtools. I use Firefox Developer Edition which has a button for them in the address bar but you can also access them by right clicking on the page and choosing Inspect or pressing CTRL + SHIFT + I
@daveturnbull7221
@daveturnbull7221 Год назад
@@ukeshrestha I forgot to say that the javascript can be viewed in the Debugger (Firefox) / Sources (Chrome) tab of the dev tools.
@hikari1690
@hikari1690 Год назад
I never appreciate how difficult these things actually are. The effects look so simple and as a backseater you'd think it'll be easy to recreate but nope 🤣
@AI.Almesbahi
@AI.Almesbahi Год назад
Nice
@makingtheweb6620
@makingtheweb6620 Год назад
Hi Kevin, can you do a series of videos expanding what possible in the header with all that applies to this area. Meta, etc .
@KevinPowell
@KevinPowell Год назад
Oh, that's not a bad idea, thanks :)
@valmonzo
@valmonzo Год назад
Hi , thanks for the tips but you should say at the beginning that div and img without figure don't validate W3C 😁.
@premsagar4438
@premsagar4438 Год назад
Kevin, what kind of keyboard do you use?
@NovaKirsch
@NovaKirsch Год назад
I think the effect is better without the background scaling - just the person image. It would be cool, instead of hover, to put a randomizer on the images to pop up and down on their own. Kind of like Whack-A-Mole
@AliShaikh-km2cb
@AliShaikh-km2cb Год назад
I wanted to know how the images pop out of the containers here comes your video. it's like mind reading
@QwDragon
@QwDragon Год назад
17:10 Sems like you coud've use transition: inherit instead of custom property.
@Ripsey
@Ripsey Год назад
What is the reason you use double underscores on class names?
@itspawanpoudel
@itspawanpoudel Год назад
Its way of writing class like camelCase, pascalCase, keb-ab etc etc
@mouradaissani8957
@mouradaissani8957 Год назад
Can you make a video about ChatGPT (OpenAI) for CSS demonstrations?
@johntbouli3189
@johntbouli3189 Год назад
will you ever do a js tutorial?
@Evan842Complex
@Evan842Complex Год назад
Why do you need a double container?
@kodeeshwarar3016
@kodeeshwarar3016 Год назад
Pls add some writing some code with accessibility
@shaheerkhan_khawjikzai
@shaheerkhan_khawjikzai Год назад
Hey kevin plz make an another course like you did before (conquering responsive layout) it is a request..
@dancehalllyrics1303
@dancehalllyrics1303 Год назад
"Since I'm in CodePen, I could just go to the view and look at the source code." 1 second after: Kevin opens up the developer tools in the browser.
@Segneal
@Segneal Год назад
git of the final code ?
@ofeenee
@ofeenee Год назад
Great video. However, Theirs scale when hovered. Yours just move up. It shouldn’t be scaled initially.
@chinmayghule8272
@chinmayghule8272 Год назад
This seems like a nice gimmick to have on you personal website.
@ItsCliffGaming
@ItsCliffGaming Год назад
Why is it more important to leave a blank alt, than not having it at all?
@KevinPowell
@KevinPowell Год назад
Images without an alt aren't considered valid. I'm fairly sure the idea here is it's easy to omit one, and that could be accidental. By requiring an image have an alt tag to be valid, you have to purposefully omit adding content to it.
@jonathanmarois9009
@jonathanmarois9009 Год назад
transition-timing-function: linear
@legoEgoJJproduction
@legoEgoJJproduction Год назад
can you make keyboard typing/clicking silent or more minimal?
@KevinPowell
@KevinPowell Год назад
It's as quiet as I can make it, sorry if you find it distracting :\
@jecapeca
@jecapeca Год назад
@@KevinPowell It's like ASMR to me. 😁
@chakitoooo
@chakitoooo Год назад
is this re-upload?
@KevinPowell
@KevinPowell Год назад
Nope, first time I do this one.
@chakitoooo
@chakitoooo Год назад
@@KevinPowell sorry, just the layout looks so familiar...
@AlThePal78
@AlThePal78 Год назад
this is crazy, the image is like 50 million lines and that is without the code
@KevinPowell
@KevinPowell Год назад
The image on their site? That's because they url encoded it, probably to make it easier to use on codepen.
@Shubhamyadav-hs2lw
@Shubhamyadav-hs2lw Год назад
Sir Hello How are you? I'm from India.
@KevinPowell
@KevinPowell Год назад
👋 I'm good, how are you? :D
@Shubhamyadav-hs2lw
@Shubhamyadav-hs2lw Год назад
Sir I'm fine and I'm Just learning CSS Grid system. Sir Have a nice day 😊
@0.01me
@0.01me Год назад
Don't you get bored by css
@KevinPowell
@KevinPowell Год назад
Never 😁
@maacpiash
@maacpiash Год назад
FIRST!
@millos0116
@millos0116 Год назад
Nailed it!
Далее
The problem with percentages in CSS
9:26
Просмотров 104 тыс.
Award Winning Animation With Only 20 Lines Of CSS?
6:59
Теперь мы - музыканты!
00:46
Просмотров 50 тыс.
МОЯ НОВАЯ МАШИНА🤍КАК ВАМ?😍
01:01
How to create a responsive HTML table
27:19
Просмотров 205 тыс.
Avoid these 5 beginner CSS mistakes
21:38
Просмотров 59 тыс.
How to create a theme switcher with HTML & CSS
28:21
Просмотров 108 тыс.
Recreating PRO Ink Reveal In CSS
13:20
Просмотров 149 тыс.
CSS Tips And Tricks I Wish I Knew Before
12:12
Просмотров 426 тыс.
A flexbox trick to improve text wrapping
5:02
Просмотров 159 тыс.
Subtle, yet Beautiful Scroll Animations
5:04
Просмотров 1,6 млн
Теперь мы - музыканты!
00:46
Просмотров 50 тыс.