Making Object Blink in Lectora v11

Hello everyone!
I am looking for a quick and easy way to make an object blink in Lectora. Any ideas?
I am looking for a quick and easy way to make an object blink in Lectora. Any ideas?
0
Categories
- 34 ✫ Announcements
- 6 ✪ Contests
- 34K eLearning Brothers® Products
- 1 AssetLibrary™
- AssetLibrary Discussions
- 1 AssetLibrary Feature Requests
- 38 CenarioVR®
- 103 CenarioVR Discussions
- 55 CenarioVR Feature Requests
- 1 CourseMill®
- 101 CourseMill Discussions
- 1 KnowledgeLink®
- KnowledgeLink Discussions
- 1 KnowledgeLink Feature Requests
- 66 Lectora®
- 1.1K Lectora Discussions
- 1.9K Lectora Feature Requests
- 53 Lectora User Groups
- 4 Off-the-Shelf Course Library
- 3 Off-the-Shelf Course Library Discussions
- 1 Off-the-Shelf Course Library Feature Requests
- ReviewLink®
- 21 ReviewLink Discussions
- 12 ReviewLink Suggestions
- 1 The Training Arcade®
- 1 The Training Arcade Discussions
- The Training Arcade Feature Requests
- 7 Additional Learning Products
- 2 Adobe®
- 2 Articulate®
- 1 Camtasia®
- Docebo®
- 1 iSpring®
- 1 Microsoft® PowerPoint®
- 288 All Things eLearning
- 3 Course Development Showcase
- 1 eLearning Brothers® Downloads
- 1 Compliance Training
- 4 eLearning Development
- eLearning Game Design
- 7 Instructional Design
- 264 Learning Management System (LMS) Integration
- 2 Mobile Learning
- 2 Visual Design
- 317 Web Accessibility
- 579 ♪ The Green Room
- 2 ♡ Community Feedback
Comments
Once you add the HTML extension it's two simple lines of code:
var star = document.getElementById("shape47");
TweenMax.to(star, .25, {opacity:0, repeat:-1, yoyo:true});
You an add this as a page show action.
The first line grabs the HTML element and assigns it a name. You would need to swap the HTML name ("shape47" in this case) of the object in your project that you want to blink.
The second line takes the object (I named it 'star') and animates its opacity to zero over the span of a quarter of a second (.25). The repeat -1 and yoyo:true make it repeat indefinitely.
You can experiment by changing the .25 to get the blink however you like. Also, if you add , repeatDelay:0.25 (don't forget the comma) So now the second line looks like this:
TweenMax.to(star, .25, {opacity:0, repeat:-1, yoyo:true, repeatDelay:0.25});
You can add a delay between the animation of the opacity. This will give you further control over the blink effect.
Note that if you copy and paste from the above that you should delete and re-add the quotes because for some reason they do not copy and paste correctly and the code will not work.
the .ini and .awt for is included in the attached zip. Try it, it's fun and works great. Hope this helps.
Darrel
Thanks again for the responses.
I am open to an alternative method to making the object blink...but, can't use the timer... because, buttons don't support that action. (So, says the compiler.).
Any help is appreciated.
On: Show
Action: Hide
Target: This object
Delay: 0.25 seconds
On: Hide
Action: Show
Target: This object
Delay: 0.25 seconds
Make it initially invisible and show it with your button. It should blink from the first click.
Check this thread how to use Greensock to make an object "pulse", as you seem to know Greensock you should have no problem to make it blink instead:
http://community.trivantis.com/forums/topic/external-javascript-not-working-in-lms/
So in the example I posted above, this:
var star = document.getElementById('shape47');
becomes this:
var star = parent.document.getElementById('shape47');
Now it'll work with seamless play turned on. Hope this helps.