简体   繁体   中英

How can I change the effect way on this jQuery iOS slider text?

I try to use this effect on my text but I need to change the way of effect. Is any change to change it? I attached a JSFiddle link to have a look

`http://jsfiddle.net/y6fpuyzd/`

I think making the following change will achieve what you want. Please include more detail if its not correct.

setInterval(function() {
    gradient_percent -= speed;

    if (gradient_percent < gradient_offset.min) {
        gradient_percent = gradient_offset.max;
    }

JSFiddle .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM