Re: SpiderBasic Library - List of new functions
Posted: Tue Oct 16, 2018 3:24 pm
@Peter...you are correct. IE Shows this...
while latest version of Chrome is missing data...
Code: Select all
Select effect
Case #SB_Gadget_Animation_Linear
animation_effect = "linear"
Case #SB_Gadget_Animation_Ease
animation_effect = "ease"
Case #SB_Gadget_Animation_EaseIn
animation_effect = "ease-in"
Case #SB_Gadget_Animation_EaseOut
animation_effect = "ease-out"
Case #SB_Gadget_Animation_EaseInOut
animation_effect = "ease-in-out"
EndSelect
styles = ""
styles + "#" + id + " { -webkit-transition: all " + duration + "s " + animation_effect + " " + delay + "s; transition: all " + duration + "s " + animation_effect + " " + delay + "s; opacity: 1; visibility: visible; } "
styles + "#" + id + " * { -webkit-transition: all " + duration + "s " + animation_effect + " " + delay + "s; transition: all " + duration + "s " + animation_effect + " " + delay + "s; opacity: 1; visibility: visible; } "
styles + "#" + id + ".HideGadget { opacity: 0; visibility: hidden; }"
;Styles hinzufügen
! document.getElementById("SBCustomStyles").appendChild(document.createTextNode( v_styles ));
! GadgetElement.addClass("HasAnimation");
EndProcedure
Code: Select all
Select effect
Case #SB_Gadget_Animation_Linear
animation_effect = "linear"
all "+ duration +" s "+ animation_effect +" "+ delay +" s; opacity: 1; visibility: visible; } "
styles + "#" + id + ".HideGadget {opacity: 0; visibility: hidden;}"
; Add Styles
! document.getElementById ("SBCustomStyles"). appendChild (document.createTextNode (v_styles));
! GadgetElement.addClass ( "HasAnimation");
EndProcedure