Imia Hazel (@ImiaHazel) header
Imia Hazel (@ImiaHazel) profile picture

Love to Share Love to Care ❤️

Joined August 2021
Photo by Imia Hazel (@ImiaHazel)Photo by Imia Hazel (@ImiaHazel)Photo by Imia Hazel (@ImiaHazel)Photo by Imia Hazel (@ImiaHazel)Photo by Imia Hazel (@ImiaHazel)Photo by Imia Hazel (@ImiaHazel)Photo by Imia Hazel (@ImiaHazel)Photo by Imia Hazel (@ImiaHazel)Photo by Imia Hazel (@ImiaHazel)Photo by Imia Hazel (@ImiaHazel)
Imia Hazel retweeted
It is an ideal marriage! 🤣
911
6,472
1,257
87,568
17,304,864
Everyone is excited about the new align-content that works with block-level elements, but pay attention when you want to center image, iframe, canvas, video, etc. ⚠️ They won't get centered ⚠️ They will look centered but in reality, they are not and this is not a bug!
2
6
35
3,137
CSS Tip! 💪 You can create these tab controls with CSS :has() + radio buttons ✨ .tabs:has(input:nth-of-type(3)) { --count: 3; } .tabs:has(:checked:nth-of-type(3)) { --active: 2; } .tabs::after { translate: calc(var(--active, 0) * 100%) 0; width: calc(100% / var(--count)); } Two CSS :has() tricks here combined with a rendering trick 🤙 The tab control is a container using display: grid. You can use :has() to count the number of tabs in the container: .tabs:has(input:nth-of-type(3)) { --count: 3; } .tabs:has(input:nth-of-type(4)) { --count: 4; } Using the cascade, the last valid :has() gives you the number of tabs 🫶 Once you know the number of tabs, you know how to size the indicator: .tabs::after { content: ""; position: absolute; height: 100%; width: calc(100% / var(--count)); } It's a pseudoelement that uses --count to determine its size 📏 The next :has() trick is determining which tab is active or :checked as it's an input [type=radio] .tabs:has(:checked:nth-of-type(2)) { --active: 1; } .tabs:has(:checked:nth-of-type(3)) { --active: 2; } You can use a zero-indexed translation here. If the second input is :checked, set --active: 1, then translate the pseudoelement on the tabs to that position 👉 .tabs::after { translate: calc(var(--active, 0) * 100%) 0; } The last rendering trick is using mix-blend-mode 👀 The tabs have a black background-color, the pseudoelement is white, and the label text is white. When you use mix-blend-mode: difference on the pseudoelement it will give this effect that the text transitions from white to black sliding across 😎 .tabs::after { color: hsl(0 0% 100%); mix-blend-mode: difference; } You can totally mix up the colors here though and go with a different effect. The mechanics of how you can use CSS :has() is the main point here 🙏 As always, any questions, suggestions, etc. let me know @CodePen link below! 👇 (There's even a @tailwindcss play for this one too 👀)
38
200
14
1,946
437,967
Imia Hazel retweeted
Timing is important! 😂
414
5,575
237
64,940
10,405,497
Want to know the secret behind creating triangle shapes? Check my latest article @VerpexHosting 👉 verpex.com/blog/website-tips… Forget the old obsolete methods and learn the modern ways to create triangle shapes. We can also have cool animations as a bonus!
The triangle🔺 is the most popular shape and I still see old and obsolete methods to create it. ⚠️STOP DOING THIS⚠️ 👉 css-generators.com/triangle-… A collection of CSS-only triangles made with a single-element and modern CSS. With the border-only and rounded corners variations.
4
20
1,874
Use modern CSS to: ✅ Set a max-width ✅ Center an element ✅ Set a minimum margin ✅ Add a full-width slanted coloration ✅ Make the slant effect responsive All of this, using only 3 properties and easy to control with CSS variables 🤩
1
10
66
4,003
What for what? 🖼️ Frontend →HTML + CSS →Javascript →React →VueJs →Angular →Svelte 🔙 Backend: →Nodejs/Express →Python/Django →PHP/Laravel →Java →C# 💽 Database →MongoDB →MySQL →Postgres →Redis 🖥️ Desktop →Electron →Tairi →PyQt 📱Phones: →React Native →Flutter →Swift →Kotlin 🖥️ System →Go →C++ →Rust Add more 💬👇
53
192
3
695
83,430
Imia Hazel retweeted
5 anti-patterns to avoid in general. • Endless planning, less actions • Resource limitation excuses • Perfection over progress • Over commitment • I'll do it tomorrow Instead: • Plan and act • Use what you've got • Progress • Commit one step at a time • Do it now
22
35
2
195
17,337
Are you looking for a Ribbon Shape? 🎀 I have made more than 100 using only CSS 🤩 👉 css-generators.com/ribbon-sh… ✅ One element per shape ✅ Optimized with CSS variables ✅ Works with any text content (no fixed sizes) #CSS
3
20
4
52
27,812
An interactive version to see how the shape fit its content. Edit the text and see the magic 🪄 Demo: codepen.io/t_afif/full/BaMRQ… via @CodePen #CSS
💡 CSS Tip! Another concept of Responsive Ribbon Shape using the same code structure. ✅ Only one element ✅ Works with multi-line text ✅ Optimized with CSS variables and Math functions Demo: codepen.io/t_afif/full/abXWo… via @CodePen #CSS
1
4
27
3,370
Imia Hazel retweeted
Color Palette Inspiration For You 🎨 🔵
21
33
1
452
31,634
Imia Hazel retweeted
ChatGPT Prompting Cheatsheet🔥
25
161
4
764
122,417
If you need HTML templates for your projects, I recommend you to use htmlrev.com. ▪️ High-quality templates ▪️ Free for commercial use ▪️ 1000+ free HTML templates Check it out!
7
83
2
347
46,089
Imia Hazel retweeted
Responsive login form with fun animation ✨ Using HTML, CSS and JS. CodePen link below 👇
130
478
23
3,976
401,891
Full Stack Developer in 2023 ➡️ Basics 🙂 HTML 🙂 CSS 🙂 JavaScript // Typescript 🙂 Git 🙂 Github ➡️ Frameworks 🙂 React // Angular // Vue // Svelte 🙂 TailwindCSS // Bootstrap ➡️ Backend 🙂 NodeJs // Python // Rust 🙂 MongoDB // PostgreSQL // MySQL 🙂 AWS // Heroku 👍👍
66