801.796.BROS (2767)
Select Page

custom lectora animations

Unfortunately, Lectora doesn’t have animations when fading in and out objects. The default transitions are not my favorite and might not appeal to everyone. So I found a way to make custom Lectora animations or transitions to display a smooth and visually explosive effect. KABOOM!!!

I was searching online for a solution to better fade in an object on my course. I came across this blog with an “awesome sauce plug-in” for Lectora, and the best part, it’s found in the Stock Library Tab in Lectora. This blog had cool graphics, good examples, and easy to follow instructions on how to use it in Lectora. Check  out Tim Kindberg’s blog post about Smooth Lectora Transitions

To build off of Tim Kindberg’s blog, rather than downloading the Smooth HTML Transition you can find it in the Lectora Library following this path: Stock Library–>Media Online–>Library Objects–>External HTML–>SmoothHTMLTransitions

custom Lectora Animation

Basically, it is HTML code that changes what Lectora “transitions” do. This is the code and my comments in bold on how to customize the code:

<script type="text/javascript" src="jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jquery.easing.1.3.js"></script>
<script type="text/javascript">
var SpeedMultiplier = 100;
//ms - higher number = slower transitions, relative to Lectora transition speed setting
var MoveToSpeedMultiplier = 100;
//ms - for Move To actions
// Choose how far the fly’s will start from their ending point
var FlyRightDistance = 200; //px
var FlyLeftDistance = 200; //px
var FlyTopDistance = 200; //px
var FlyBottomDistance = 200; //px
var SizeToFromCenter = true;
// Choose an ease for each type of effect. Then replace “swing” with one of the following Easing Types:
// // swing, easeInQuad, easeOutQuad, easeInOutQuad, easeInCubic, easeOutCubic, easeInOutCubic, easeInQuart,
// // easeOutQuart, easeInOutQuart, easeInQuint, easeOutQuint, easeInOutQuint, easeInSine, easeOutSine, easeInOutSine,
// // easeInExpo, easeOutExpo, easeInOutExpo, easeInCirc, easeOutCirc, easeInOutCirc, easeInElastic, easeOutElastic,
// // easeInOutElastic, easeInBack, easeOutBack, easeInOutBack, easeInBounce, easeOutBounce, easeInOutBounce
var MoveToEase = "swing";
var SizeToEase = "easeOutBack";
var FadeInEase = "swing";
var FadeOutEase = "swing";
var FlyInRightEase = "swing";
var FlyOutRightEase = "swing";
var FlyInLeftEase = "swing";
var FlyOutLeftEase = "swing";
var FlyInTopEase = "swing";
var FlyOutTopEase = "swing";
var FlyInBottomEase = "swing";
var FlyOutBottomEase = "swing";
var FlyInTopRightEase = "swing";
var FlyOutTopRightEase = "swing";
var FlyInTopLeftEase = "swing";
var FlyOutTopLeftEase = "swing";
var FlyInBottomRightEase = "swing";
var FlyOutBottomRightEase = "swing";
var FlyInBottomLeftEase = "swing";
var FlyOutBottomLeftEase = "swing";
var WipeDownInEase = "swing";
var WipeDownOutEase = "swing";
<script type="text/javascript" src="smoothHTMLtransitions.js"></script>
<script type="text/javascript">
// I've included an easy way to insert you're own
// Jquery code here as a convenience
//console.log("JQuery Ready");

Pin It on Pinterest