CSS by T. Afif :verified:
css@front-end.social
<p>CSS stuff by Temani Afif<br /> <br /> ๐ก <a href="https://css-tip.com" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="">css-tip.com</span><span class="invisible"></span></a><br /> ๐งฉ <a href="https://css-shape.com" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="">css-shape.com</span><span class="invisible"></span></a><br /> ๐ซ <a href="https://css-loaders.com" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="">css-loaders.com</span><span class="invisible"></span></a><br /> ๐ <a href="https://css-articles.com" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span cl
Posts
-
View post
a11y question: Let's suppose I have an empty html element somewhere on the page with 0 content, invisible*, having position:absolute (or fixed). It has no purpose in the HTML (only used for some CSS stuff). Is it a good idea to add the "inert" attribute? Or should I do nothing? * It may or may not have a size, but no style to make it visible. #A11y #HTML
-
View post
๐ก CSS Tip! After corner-shape, shape(), and border-shape, another feature is available to play with: rounding polygons. https://css-tip.com/rounded-shapes/ You create a polygon, add a radius value at the beginning, and you have a shape with rounded corners! #CSS #HTML
-
View post
๐ New CSS Article! I wrote about border-shape. A super powerful feature! You might think I'm exaggerating but I am not. https://css-tricks.com/get-ready-for-the-powerful-css-border-shape-property/ This is just a tiny overview of its potential. Stay tuned for more articles/demos that will blow your mind (I am still not exaggerating!) #CSS #HTML
-
View post
๐กCSS Tip! Create a responsive grid with a cool animation. Everything adjusts smoothly on resize or when adding/removing new items. https://css-tip.com/animated-grid/ A CSS-only implementation with a few lines of code. #CSS #HTML
-
View post
Who said range sliders need to be straight and boring?! Hey CSS, distort the line! ใฐ๏ธ https://css-tip.com/wiggly-range-slider/ Another funny demo powered by border-shape, scroll-driven animations, and more The HTML code? Only an input element (no extra code is needed) #CSS #HTML
-
View post
Now that shape() is available in all major browsers, let me remind you that you can use my online generator to create any polygon with ... rounded corners! https://css-generators.com/polygon-shape/ Adjust the setting, then copy the code. #CSS #HTML
-
View post
๐ก CSS Tip! Do you want to control the speed of an infinite animation on hover (or any other interactions)? It&#39;s possible with a simple code. https://css-tip.com/speed-control/ Accelerate, slow down, stop, move in the opposite direction. One CSS variable to set and it&#39;s done! #CSS #HTML
-
View post
๐ก CSS Tip! For years, we&#39;ve had the &quot;z-index, stacking context&quot; nightmare, but we will soon have a worse nightmare related to Anchor Positioning ๐ฑ When it doesn&#39;t work, it&#39;s frustrating, so it&#39;s time to learn how it really works. https://css-tip.com/anchor-issues/ It&#39;s not as simple as you might think! #CSS #HTML
-
View post
RE: https://mastodon.social/@csstricks/116335548662855451 Years ago, creating CSS shapes was a tedious task. I had to find workarounds with a lot of gradients and math. Now, using the shape() function, I can easily create complex shapes and animate them! ๐ #CSS #HTML
-
View post
Who found the easter egg in my CSS-only Dino game? ๐ฅ A &quot;rocket mode&quot; to fly above everything! ๐ Give it a try: https://css-tip.com/dino-game/ #CSS #HTML
-
View post
๐ก CSS Tip! We&#39;ve just had the release of :chrome: Chrome 147, which means border-shape was enabled by default! ๐ https://css-tip.com/border-shape/ Another property to create CSS shapes, but not only that! We can do a lot of fancy stuff with it. Many cool demos/articles are on the way ๐คฉ #CSS #HTML
-
View post
Bending a straight line using pure CSS?! ๐ Another cool demo in progress powered by border-shape. It&#39;s coming to :chrome: Chrome next week! ๐คฉ #CSS #HTML
-
View post
A classic rounded button: boooring!! ๐ฅฑ A squishy animated button: Yes, please!! ๐คฉ https://css-tip.com/squishy-button/ Another cool demo powered by the powerful shape() function #CSS #HTML
-
View post
It&#39;s been a while since my last CSS Pattern, so let&#39;s work on new ones! https://css-pattern.com/circles-pills/ #CSS #HTML
-
View post
๐ก CSS Tip! Add an infinite wobbling animation to your image with a simple code. https://css-tip.com/wobbling-animation/ Powered by &quot;complex&quot; shape()s that you can easily get from my online generator! https://css-generators.com/fancy-frame/ #CSS #HTML
-
View post
๐ New CSS Article! If you have seen my graph theory demo and wondered how it works, then the article is finally live! https://frontendmasters.com/blog/two-circles-one-arrow-and-anchor-positioning/ I was playing with two circles and anchor positioning, and ended up creating a shortest path algorithm. Modern CSS is fun! #CSS #HTML
-
View post
Now that my favorite feature is well supported, let&#39;s create a new set of CSS loaders ๐คฉ The Squishy Collection: https://css-loaders.com/squishy/ Single-element implementation powered by shape() (and linear() for the bouncy ones!) Pick your favorite one ๐ #CSS #HTML
-
View post
What&#39;s the best way to showcase modern CSS features? By making games! This time it&#39;s the famous :chrome: Dino Game ๐ฆ https://css-tip.com/dino-game/ 100% CSS magic playable with the keyboard. Yes, you can jump and crouch with the arrow keys! ๐ Don&#39;t search for the JS, there is none. #CSS #HTML
-
View post
๐ก CSS Tip! A sliding liquid reveal effect, because why not! ๐ซ https://css-tip.com/sliding-liquid/ Another demo powered by shape() and made easy with my online generators: https://css-generators.com/wavy-divider/ #CSS #HTML
-
View post
I thought I had found a bug that prevented counter() from working properly, but it was a feature! https://css-tip.com/counter-gotcha/ Another CSS gotcha that you&#39;d better know about if you don&#39;t want to waste time trying to figure out why your code isn&#39;t working. Thanks to @mia for the insights #CSS #HTML
-
View post
Stack Overflow asked me to propose a CSS Challenge, and I couldn&#39;t refuse. https://stackoverflow.com/beta/challenges/79908564/challenge-17-the-accurate-selection It&#39;s about Selectors and more! There is nothing to win (except a profile badge), but it&#39;s a fun challenge to illustrate your creativity. #CSS #HTML
-
View post
It seems we can now customize the select element, right? right?! Demo: https://codepen.io/t_afif/pen/PwGPJOB via :codepen: @codepen #CSS #HTML