移动效果演示

Original 2019-01-04 09:47:42 232
abstract:<!DOCTYPE html><html><head><meta charset="UTF-8"><title>Document</title><script type="text/javascript" src="jquery-3.3.1.min.js">

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title>Document</title>

<script type="text/javascript" src="jquery-3.3.1.min.js"></script>

<style type="text/css">

.box{

width: 200px;

height: 200px;

background: red;

text-align: center;

color: orange;

font-weight: bold;

border-radius: 20px;

position: absolute;

}

</style>

<script type="text/javascript">

$(document).ready(function(){

$('button').click(function(){


$('.box').animate({

left:'600px',

top:'400px',

width:'100px',

height:'100px',

opacity:'0.4',

},1800)

})

})


</script>

</head>

<body>

<button>点击开始</button>

<div>倾斜式移动</div>


</body>

</html>


Release Notes

Popular Entries