webkit transition syntax in javascript?

前端 未结 5 1030
借酒劲吻你
借酒劲吻你 2021-01-19 03:34

I\'m looking for the webkitTransition object reference here

 function spawnAnimation(what){
    //sets the moving element
    var moveingEl = document.getEl         


        
5条回答
  •  后悔当初
    2021-01-19 04:03

    Allow 1ms for the rendered to get the thread back.

    setTimeout(function() {
        myElement.style.height = '200px'; /* or whatever css changes you want to do */
    }, 1);​
    

提交回复
热议问题