nowfound

Dev tools · September 30, 2024

PC

Pure CSS silky Border line animation(open-source code)

Use only CSS to achieve a silky border line animation effect. Key implementation ideas include: 1. Perspective effect: Create a border effect by setting up two nested elements with the parent element having 1 pixel padding. 2. animation: Create an absolutely positioned child element and use the animation property to move it uniformly along the border of the parent element. 3. Uniform animation: By calculating the path and distance of the element movement, adjust the percentage of key frames to ensure uniform animation. 4. Rounded corners: Add rounded corners to the parent and child elements,…

What it does

In the maker’s words, at launch

Use only CSS to achieve a silky border line animation effect. Key implementation ideas include: 1. Perspective effect: Create a border effect by setting up two nested elements with the parent element having 1 pixel padding. 2. animation: Create an absolutely positioned child element and use the animation property to move it uniformly along the border of the parent element. 3. Uniform animation: By calculating the path and distance of the element movement, adjust the percentage of key frames to ensure uniform animation. 4. Rounded corners: Add rounded corners to the parent and child elements, and adjust the position of the animation elements to fit the rounded corners. 5. Animation optimization: Adjust the animation trajectory at the rounded corners to ensure a natural and smooth transition. 6. Blur shadow: Achieve the shadow effect by setting the background radial gradient of the child element and using the backdrop-filter attribute to add a blur effect. https://github.com/volume988/button-motion

Does the same job

all alternatives →

More dev tools this month

the category →
  • Dograh592

    The open source VAPI alternative

    Dev tools · 25d ago · dograh.com

  • Meridian530

    Don't let your work go unnoticed. Get promoted!

    Dev tools · 20d ago · meridiona.com

  • x1516

    Lovable for iPhone apps go from idea to App Store

    Dev tools · 11d ago · x1.new

  • Open-source GTM skills for technical founders

    Dev tools · 29d ago · gtmcofounder.com

  • OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.

    Dev tools · 1d ago · opentrailpaper.com

  • Nuphos380

    The AI-Native DevOps Workspace.

    Dev tools · 24d ago · nuphos.ai

Launched alongside, September 2024

the whole month →
  • Wispr Flow2,737

    Speak naturally, write perfectly & 3x faster in every app

    AI · 2024 · wisprflow.ai

  • Pathway1,335

    Get user insights 10x faster

    Work · 2024 · wynde.io

  • Personalized AI daily planning that suits your life

    AI · 2024 · beforesunset.ai

  • Osmos1,194

    Match with like-minded professionals for 1:1 conversations

    Growth · 2024

  • Polar1,169

    An open source monetization platform for developers

    Dev tools · 2024 · polar.sh

  • Carrot Care1,167

    Understand & optimise your bloodwork

    Life & fun · 2024 · carrotcare.health