css Audio - Active file-generic CSS - Active Generic - Active HTML - Active JS - Active SVG - Active Text - Active file-generic Video - Active header Love html icon-new-collection icon-person icon-team numbered-list123 pop-out spinner split-screen star tv
CodePen probably won't work great in this browser. We generally only support the major desktop browsers like Chrome, Firefox, Safari, and Edge. Use this one at your own risk! If you're looking to test things, try looking at Pens/Projects in Debug View.
user profile image

I've made this pen as a reply on @diomed 's suggestion. I've used hover pseudo class as well as transitions.


  1. @diomed, here are the three variations on the hover effect you asked for, as I promised. I hope that it will be helpful for you! :)

  2. Hi @Elie all 3 are very nice.

    What I was really asking for is - when button animates, it's 'end game' should be like 2nd button, when on hover. So lines would go (animate), but they would end in opposite direction -like in 2nd button-thus they would be incomplete.

  3. @diomed Well, there was misunderstanding. I hope now it looks like your idea. :)

Leave a Comment Markdown supported. Click @usernames to add to comment.

You must be logged in to comment.