Location: A review of cardiac cellular electrophysiology models @ f954e5918331 / dojo-presentation / js / dojo / dojox / fx / tests / test_animateClass.html
- Author:
- David Nickerson <david.nickerson@gmail.com>
- Date:
- 2021-09-16 00:41:19+12:00
- Desc:
- Updating Noble 1962 model: * Exposing the membrane potential to the top-level model; * adding SED-ML for the paced and pacemaker variants of the model. Using OpenCOR Snapshot release 2021-09-14.
- Permanent Source URI:
- https://models.fieldml.org/workspace/a1/rawfile/f954e59183314cd37f86c8832dc81317d01c8ec5/dojo-presentation/js/dojo/dojox/fx/tests/test_animateClass.html
dojox.fx.style tests
dojox.fx.style provides a few methods to animate the changes that would occur when adding or removing a class from a domNode.
- dojox.fx.addClass(/* Object */)args); // Returns dojo._Animation
- dojox.fx.removeClass(/* Object */args); // Returns dojo._Animation
- dojox.fx.toggleClass(/* DomNode */node, /* String */cssClass,/* Boolean */force)
testing sizes
add .tall remove .tall add .wide remove .wide toggle .tinytesting position
This is a div position:relative with a position:absolute div inside. testing various t/l/b/r combos. normal css inheritance rules apply, so setting .foo .bar if .foo was defined last in the css text, .bar will take precedent. the below position test shows the results of this:
.offsetSome .topLeft .bottomRightSome properties cannot be modified (fontFace, and so on), so to ensure the results at the end of the animation are applied correctly and fully, the class name is set on the node via dojo.add/removeClass().