XC (@XavierChvlr) header
XC (@XavierChvlr) profile picture
Joined September 2011
Photo by XC (@XavierChvlr)Photo by XC (@XavierChvlr)Photo by XC (@XavierChvlr)Photo by XC (@XavierChvlr)Photo by XC (@XavierChvlr)Photo by XC (@XavierChvlr)Photo by XC (@XavierChvlr)Photo by XC (@XavierChvlr)Photo by XC (@XavierChvlr)Photo by XC (@XavierChvlr)
CSS Tip! ✨ It's 2024 and you have a new way to make animated borders 🚀 .glow::after { offset-path: rect(0 100% 100% 0 round var(--radius)); animation: loop; } @​keyframes loop { to { offset-distance: 100%; }} Using the offset-* properties you can animate elements along the perimeter of others 😍 The rect() value gained support in Safari 17.2 🙌 To start, you create an element and put it inside your main element. For example, you put a span inside the button 🤙 <button> <span data-glow /> Click me! </button> Make the element fill its parent with absolute positioning and inset [data-glow] { position: absolute; inset: 0; } Now the good part, you use a pseudoelement on that element and define an offset-path [data-glow]::after { content: ""; offset-path: rect(0 auto auto 0 round var(--radius)); animation: loop 2.6s infinite linear; } With the rect value, you are saying the path fills the parent container: top: 0 right: auto || 100% bottom: auto || 100% left: 0 Then you can use round to make sure the path uses the same radius as whatever the parent has The @​keyframes animation merely animates the offset-distance of that pseudoelement to 100% @​keyframes loop { to { offset-distance: 100%; }} You can see this more clearly in the video 🫶 The offset-* properties also include an offset-anchor property. This allows you to dictate which point of the element follows the path. For example: anchor-offset: 100% 50%; This means that the "right, center" of the element will follow the perimeter of the parent element 🤙 Lastly, the visuals 🎨 For color, you can use a gradient such as a linear gradient to fill the pseudo-element. [data-glow]::after { background: radial-gradient( circle at right, hsl(320 90% 100%), transparent 50% ); } Then clip away everything so you only have the border and can still have translucent backgrounds, etc. Use a mask with mask-composite ✨ A little transparent border trick: [data-glow] { border: 2px solid transparent; mask: linear-gradient(transparent, transparent), linear-gradient(white, white); mask-clip: padding-box, border-box; mask-composite: intersect; } Bit of a long one. Hope you find it useful 🙏 @CodePen link below 👇
Animated gradient border but with my own twist to it, I used offset path to achieve this animation and it resulted in less code than I expected while avoiding some pitfalls that I saw with other solutions. It is a very pleasing visual effect ✨ @CodePen is in the 🧵
22
166
7
1,393
284,100
🎠 Today, @mbarvian shares three amazing carousel experiments made with CSS scroll-driven animations, based on Francesco Zagami’s designs! No JavaScript! 🧪 Highly experimental, but oh-so-beautiful! 😍 Have a look: tympanus.net/codrops/?p=7518… #css #animation #frontend
5
36
2
308
20,041
Website Of The Day is Time to Refokus: Teaser tinyurl.com/46wb3h9v by Refokus @refokusagency #webdesign #webdev #cssdaWOTD #CSSDesignAwards
1
19
125
6,796
Very happy to finally launch this site w/ @chriskala_ , after a long wait, it is now up on Awwwards, if you mind sharing a vote! 🕊️ ↳ awwwards.com/sites/chris-kal… #Portfolio #javascript #design #Webdesign #webgl
22
61
5
612
48,532
Are you ready for these 🔥 super hot UI interactions and animations? 😎 Those bento grid animations are absolutely killing it! Get inspired: tympanus.net/codrops/2023/09… #animation #ui #webdesign #motiondesign #uidesign #motion #inspiration
24
1
175
20,698
France’s new SREN bill requires browsers like @Firefox to build powerful censorship tools & sets a dangerous precedent. Sign the petition, tell the French government: Remove Article 6 from the SREN bill! mzl.la/3PfzG4K
91
546
63
645
95,116
Our subscribers are in for a treat tomorrow with an exclusive #demo🌟 Not part of the tribe yet? Subscribe for goodies like these & weekly #frontend news: eepurl.com/dJBUCo 👀 Sneak a peek at what we have prepared:
2
5
47
12,935
Mini tutorial on making WebGL look ✨ good ✨. One of the hardest—easiest tasks. These are often ignored: 🔑 SRGB, Gamma & tonemapping 🔐 Env maps and good lighting Deployed: csb-lwo219-oegdjlwa3-drcmda.… Sandbox: codesandbox.io/s/building-li… GH Sponsors: github.com/sponsors/drcmda ↓
12
78
4
733
78,085
Here we go again. Love that thing! Added a kind of 3d outline to the text and some scroll madness! No Webgl, no libs 🦩
6
34
2
389
23,395
Bon, Re: Take va disparaître. Ce vendredi, la chaîne sera désactivée par YouTube. Donc les vidéos, la totalité des vues accumulées et la communauté construite au fil du temps vont partir en fumée. À DÉROULER. @YTCreateurs, @TeamYouTube, @YouTube youtu.be/KGrsZLR_zj4
2,670
35,133
3,628
57,118
Nous souhaitons le retour de nos vidéos injustements retirées, et l'annulation de la suspension de notre chaîne Youtube, Re: Take (youtube.com/c/Retake). Notre communiqué :
286
9,937
471
20,583
Replying to @mpatti
I'm cooking something with a wonderful team, that might interest people working in the industry 👀 @tasklineapp Closed beta test should start on May 2020. You are already in my guest list 🙏🏻
2
1
5
Tip: createapp.dev generates webpack build configs for you online 📦 Useful learning tool by @karljakoblind
24
901
38
3,001
Par @M0dz145 1 • MUSE - Blockades youtu.be/8muGWOjNoSo | goo.gl/xc3UYf 2 • Infected Mushroom & Bliss - Bliss on Mushrooms (feat. Miyavi) youtu.be/ceYKKNXFpSE 3 • Polyphia - Saucy youtu.be/Zqt_WYwgYTc | goo.gl/XUzRAd
3
3
Je me demande combien de developpeurs sont fichés S à force de rechercher des trucs du genre "How to kill all workers", "How to hide a child" "Remove the parent"...
7
307
9
562
Ce n'est pas de la paresse (c'est presque du courage) commitstrip.com/2017/02/28/d…
16
384
46
498