* { margin:0; padding:0; } button { margin:50px; margin-left:500px; margin-top:200px; } #ball { display:none; position:fixed; left:300px; top:300px; transition:all .5s cubic-bezier(0.49,-0.5,0.75,0.41); } #ball #ball-hook { width:15px; height:15px; background:red; border-radius:100%; transition:all .5s linear; }
模仿饿了么添加菜品小球动画 ,css3