Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moving dotted border using CSS

Tags:

css

border

I have class that applies a dotted style border property to a text block at runtime. I am trying to find a solution, using CSS, that makes the border move like a gif image.

Is there any way to achieve this?

like image 722
mehul9595 Avatar asked Sep 10 '25 07:09

mehul9595


1 Answers

Not CSS3, but it works: http://matthewjamestaylor.com/blog/animated-photoshop-selection-on-a-web-page

You can make it without images, by utlizing CSS3 gradients for the stripes and animating background-position (rough demo: http://codepen.io/christopheschwyzer/pen/CEwBI), but I wouldn't recommend it since it would only work well on Webkit.

like image 93
Lea Verou Avatar answered Sep 13 '25 06:09

Lea Verou