12 lines
416 B
JavaScript
12 lines
416 B
JavaScript
document.getElementsByTagName("head")[0].insertAdjacentHTML(
|
|
"beforeend",
|
|
"<link rel=\"stylesheet\" href=\"_content/BlazorAnimation/animate.css\" />");
|
|
|
|
|
|
|
|
var AnimatedComponent = AnimatedComponent || {};
|
|
AnimatedComponent.animationend = function (element, dotNet) {
|
|
element.addEventListener('animationend', function(e) {
|
|
if(e.target === this)dotNet.invokeMethodAsync("OnAnimationEnd")
|
|
});
|
|
}; |