最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Cycling animation of rainbow-coloured text - Stack Overflow

programmeradmin2浏览0评论

CYCLING COLORS ON HOVER With JavaScript/jQuery

I'm trying to take a block of text, color each letter according to calculated position between HSL 0deg and 360deg, and on hover animate the colors to the right. I know this is weird, but bear with me. What I want is animated rainbow text on hover.

I've covered the logic of making all of this happen once, but can't get hover cycling behavior to work.

here is a link to the codepen.io:

I've tried using JavaScript mouse events and jQuery's .hover(). My initial thought was to set an interval on mouse enter and clear it on exit.

I'd truly appreciate any help on this obviously very important project.

CYCLING COLORS ON HOVER With JavaScript/jQuery

I'm trying to take a block of text, color each letter according to calculated position between HSL 0deg and 360deg, and on hover animate the colors to the right. I know this is weird, but bear with me. What I want is animated rainbow text on hover.

I've covered the logic of making all of this happen once, but can't get hover cycling behavior to work.

here is a link to the codepen.io: http://cdpn.io/txmlf

I've tried using JavaScript mouse events and jQuery's .hover(). My initial thought was to set an interval on mouse enter and clear it on exit.

I'd truly appreciate any help on this obviously very important project.

Share Improve this question edited Dec 8, 2013 at 22:02 Ben Jackson 11.9k7 gold badges34 silver badges42 bronze badges asked Oct 3, 2013 at 17:23 ToddTodd 5,4543 gold badges30 silver badges47 bronze badges 2
  • 1 Obviously very important project
发布评论

评论列表(0)

  1. 暂无评论