課程
/前端開發
/HTML/CSS
/帝堵搶車位動畫制作
老師這視頻咋做的呀,求指點,很贊,一定要回答一下,不然我會睡不著的,哈哈
2015-08-11
源自:帝堵搶車位動畫制作 1-1
正在回答
<!DOCTYPE html><html>??? <head>?? ??? ?<title>停車動畫</title>??????? <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />? ??? ??? ?<link href="style.css" rel="stylesheet" type="text/css">?? ??? ?<script src="
????????<style>
????????????*{ padding:0px; margin:0px; }????????????body{ ??????????????????? background:#D5DEE7; ??????????????? }????????????.car{ ??????????????? position:absolute;??????????????? top:0px;??????????????? bottom:100px;
}
?????? </style>
?? ? <script>
????????????$(document).ready(function(){?????????????? $(".carDiv").hover(function(){????????????????????? $(".car").animate({bottom:'0px'},{duration:100});???????? ?? },function(){?????????????????? $(".car").animate({bottom:'600px'},{duration:100});????????? })});
????</script>?? ?</head>?? ?<body class="carDiv">??????? <img class="car" src="http://img1.sycdn.imooc.com//5343d553000107a107200701.jpg" width="350" height="341"/>?? ??? ?</body></html>
單擊車圖片,車圖片向下移動500px,移動時間設置600微秒。這個效果做不出來? ? 請指導!?。?br />
舉報
帶領大家做一個搶車動畫效果,學會滑動動畫效果,成為搶車位達人
3 回答視頻是怎么錄制的
1 回答看幕課早期的視頻真用心
1 回答怎么看不了別人的代碼呢?
1 回答厲害了 有沒有
2 回答為什么將hover改成click后就不行了呢
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2015-12-23
<!DOCTYPE html>
<html>
??? <head>
?? ??? ?<title>停車動畫</title>
??????? <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
? ??? ??? ?<link href="style.css" rel="stylesheet" type="text/css">
?? ??? ?<script src="
????????<style>
????????????*{ padding:0px; margin:0px; }
????????????body{
??????????????????? background:#D5DEE7;
??????????????? }
????????????.car{
??????????????? position:absolute;
??????????????? top:0px;
??????????????? bottom:100px;
}
?????? </style>
?? ? <script>
????????????$(document).ready(function(){
?????????????? $(".carDiv").hover(function(){
????????????????????? $(".car").animate({bottom:'0px'},{duration:100});
???????? ?? },function(){
?????????????????? $(".car").animate({bottom:'600px'},{duration:100});
????????? })
});
????</script>
?? ?</head>
?? ?<body class="carDiv">
??????? <img class="car" src="http://img1.sycdn.imooc.com//5343d553000107a107200701.jpg" width="350" height="341"/>?? ?
?? ?</body>
</html>
單擊車圖片,車圖片向下移動500px,移動時間設置600微秒。這個效果做不出來? ? 請指導!?。?br />