Comments (2)
@karneaud There is an event callback option which you can pass your own function to. For example (taken from #3 -- see it for more info):
$("#js-rotating").Morphext({
complete: function () {
// 1. Stop if phrase index is 3
if (this.index === 3) {
this.stop();
}
// 2. Stop if phrase is "Stop here" by retrieving the current phrase through its index
if (this.phrases[this.index] === "Stop here") {
this.stop();
}
// 3. Stop at the last phrase
if (this.index === this.phrases.length - 1) {
this.stop();
}
}
});
There's no specific pub/sub kind of event though. Let me know if this helps you and if not, let me know the specific event you would like and I may consider adding it in (or at least creating a modified version for you).
Thanks!
from morphext.
I'm closing this issue as it is becoming stale.
Please do let me know if you have any questions or other problems. I'm more than happy to help.
from morphext.
Related Issues (20)
- devDependencies out of date HOT 4
- How to remove an animation after it has completed? HOT 5
- The latest version tag problem HOT 6
- Fade Out Animation HOT 2
- Add fadeInfadeOut stuff HOT 4
- Conflict with the animate.css latest version! HOT 4
- Changing rotation speed for last few phrases HOT 11
- Changing speed of animation depending on index
- linebreak HOT 4
- Stop after completed HOT 6
- Have not Animation feature Clip, Type, Loading Bar HOT 1
- Morphext is not a function HOT 2
- There is miss git tags v2.4.5~v2.4.7 on GitHub repository
- more compress and seccure this plugin HOT 4
- Skip to next Word HOT 1
- [Feature Request] Please add character based animation HOT 2
- Typo in the instructions on morphext.fyianlai.com HOT 2
- Prevent all phrases from flashing inside rotating element on page load HOT 4
- Reset to first word upon click of a button HOT 4
- How to override options?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from morphext.