A decorative React layer that sends a coloured beam of light around the border of any card, form or button to pull the eye to it. Drop it inside a relative element; start and end colours, beam length, border width, speed, direction and starting point are all props, and two beams together make a highlighted ‘featured’ card. Motion is handled by the motion library with offset-path. Built with React and Tailwind CSS v4.
Border Beam — a light beam travelling along cards and buttons | Hub Design
Contact: info@hubdesign.ir · 0211733
Author: Mohammad Barotuiha