纯css布局实现汽车动画

代码语言:html

所属分类:布局界面

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">

<style>
  body{
    display: flex;
    justify-content: space-evenly;
}

.wheels{
    width:600px;
    margin-top:15%;
    padding-left:60px;
    padding-top:100px;
    display: flex;
    justify-content: space-between;
    border-top-right-radius: 70%;
    border-top-left-radius: 45%;
    border-bottom-left-radius: 25%;    
    border-bottom-right-radius: 15%;

    border-bottom: 18px solid #000;
    animation: bounce .5s infinite; /* see comments*/
    background: linear-gradient( 4deg, rgb(27, 29, 29) calc(5%),#aaa, darkgrey calc(50% - 1px).........完整代码请登录后点击上方下载按钮下载查看

网友评论0