Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 203
  1. Smoothly stop an infinite rotation

    After the previous effect, here is a different way to stop an infinite rotation on hover.

  2. Running animations without keyframes

    Using the new @starting-style you can create animations without using @keyframes.

  3. A CSS-only clock showing the current time

    What time is it?

  4. Smooth rotation with modern CSS

    Use modern CSS to control the rotation of any element smoothly.

  5. Overflow/scrollbar detection using modern CSS

    Do you want to detect if an element is having an overflow or if it's scrollable?

  6. A new way to center block elements using place-self

    A modern and more intuitive way to center block elements is available!

  7. Border-only breadcrumb shape using modern CSS

    Create a border-only breadcrumb shape using a few lines of code and modern CSS.

  8. Glowing border animation with a smooth stop

    Add a glowing border animation around your image (or any element) with a few lines of code.

  9. Full-bleed layout with modern CSS

    Use modern CSS and a few lines of code to create a full-bleed layout.

  10. How to correctly use steps() with animations

    You want to create a discrete animation using steps() but you struggle with its value, right?

  11. Vertical rounded tabs using CSS mask

    Updating the previous rounded tab shape to create the vertical version using the same code structure.

  12. Get the scrollbar width using only CSS

    Do you want to know the scrollbar width?

  13. Folded rectangle shapes using CSS mask

    Create folded rectangle shapes with a subtle 3D effect Single element (no pseudo-element) Optimized with CSS Variables Powered by CSS mask Read more

  14. Indent each line of your text

    Do you know that text-indent can take an extra value each-line?

  15. We saw the selector for the first occurrence and here is the selector for the last occurrence.

  16. A CSS selector to select the first occurrence of an element regardless of its position in the document.

  17. 3D parallax effect on hover

    After the previous effect, I am trying another concept of 3D parallax effect with a better illusion!

  18. How to correctly define a one-color gradient

    Learn the correct way to create a one-color gradient with an optimized code.

  19. Avatar hover effect with a rhombus shape

    Place you image inside a rhombus shape with a cool hover effect No extra element (only the <img> tag) No pseudo-element Less than 15 CSS declarations Read more

  20. Inner display vs Outer display

    Do you know that the below declarations are the same?

  21. Puzzle shapes using CSS mask

    Create different kind of puzzle shapes using a few lines of code Single element (Works with <img>) Optimized with CSS variables Powered by CSS mask Read more

  22. The Filling CSS loaders Collection

    Adding a new set of loaders to the biggest collection of loading animations.

  23. Default behavior of position absolute

    Many have a wrong information about the default behavior of position: absolute element.

  24. Animate to height/width auto (without hacks)

    Only three lines of code and you have a smooth transition to height: auto Read more

  25. Remove the unit from any CSS value

    Do you want to convert a length value to a unitless value?

  26. Update CSS variables using range slider

    Using scroll-driven animations, you can link a CSS variable with a range slider and easily update its value!

  27. Progress element with a tooltip

    Adding a tooltip to the native progress element showing the percentage of progress.

  28. Curved avatar header with hover effect

    I am using the inner curve/notch shape to create a fancy header with an avatar and a cool hover effect.

  29. Inner curve/notch shape using CSS mask

    Create an inner curve/notch shape using CSS mask and a few lines of code Only one element No pseudo-element Works with gradients & images Optimized with CSS variables Read more

  30. Quantity queries using has() selector

    Adjust the below to get your quantity query selector!

  31. A decorative line with rounded dashes

    Create a nice decorative line with rounded dashes using a few lines of code Only one element Responsive (no cut or partial dash) You can easily switch to the vertical version Optimized with CSS variables Code available here: css-shape.com/rounded-dashes R…

  32. A CSS generator for wavy circle shapes

    Use an online generator to create fancy wavy circles in no time!

  33. Arc shape with rounded edges

    Create an arc shape with rounded edges using a few lines of CSS Single element (no pseudo-element) Less than 10 CSS declarations Supports gradient coloration Optimized with CSS variables Read more

  34. Get the width of the scrollbar using only CSS

    "What is the width of the scrollbar?"

  35. Count the number of lines inside a text

    By adjusting the code of the previous tip (getting the width/height of any element) we can do some intresting counting.

  36. Use modern CSS features to get the width and height of any element as CSS variables.

  37. Calculate the scroll progress of an arbitrary element

    The same code of the previous trick can also be used to get the scroll progress of any element on the page.

  38. Calculate the scroll progress of the page

    Get the scroll progress of the page as a CSS variable using a few lines of code Powered by Scroll-Driven animations Defined at the :root level (avaiable to all the elements) Typed using @property You can easily use it within any formula Read more

  39. Manual typography using Scroll-driven animations

    Add a slider to adjust the font-size of your website using modern CSS features. 0 JavaScript required (100% CSS) Powered by Scroll-driven animations & @property Easy to control using CSS variables Read more

  40. Typed CSS variables using @property

    Stop defining your variables inside :root!

  41. Get the screen width & height without JavaScript

    Get the screen width and height as pixel values using a simple CSS code.

  42. Border gradient with border-radius

    Save this code for the future!

  43. Inverted border-radius using CSS mask

    Use CSS mask to create an inverted radius corner with a minimal code.

  44. Circular progress using scroll-driven animations

    Transforming the native progress element into a circular one.

  45. Grainy texture using CSS gradients

    Create a random-style background (grainy texture) using a few lines of code.

  46. Fancy hover effect with anchor positioning

    A few experiemntation usign Anchor Positioning to create fancy hover effects.

  47. Cut-out shapes using clip-path

    A simple code to invert any kind of shape created using clip-path: polygon().

  48. Custom range slider with tooltip II

    After the previous concept, here is another idea of range slider.

  49. Better text wrapping using text-wrap

    Enhance your text wrapping using text-wrap.

  50. Custom range slider with tooltip

    Create a custom range slider with a tooltip showing the selected value.