-1

I am trying to use this plugin - BorderAnimation Effects with jQuery CSS3 Line

It's really works if I hover on a div, but I want that it will start when the page load and not when I'm hovering on it. I use this code:

$('.simultaneous').borderSimultaneous(animationDuration, borderWidth, "onhover", backgroundColor);

I tried to remove onhover, but it doesn't works. If someone tried this plugin already and know how to do it please write it here :)

Mosh Feu
  • 28,354
  • 16
  • 88
  • 135
Web R
  • 565
  • 1
  • 6
  • 23

1 Answers1

0

'onhover' is the parameter 'activeWhen'

in the plugin, this parameter is tested with

if ( activeWhen == 'onhover' ){ // do something when hover}

else { // do something when page created }

then i say you can replace 'onhover' with any variable

you can put 'WEB R' :)

$('.simultaneous').borderSimultaneous(animationDuration, borderWidth, "WEB R", backgroundColor);

you should replace the parameters with the right values

Fahmi B.
  • 758
  • 2
  • 10
  • 23