js+css实现选择用户图像左右滑动效果代码
代码语言:html
所属分类:其他
代码描述:js+css实现选择用户图像左右滑动效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
body, * {
margin: 0;
padding: 0;
color: var(--white);
font-family: 'VisbyCF-Bold', sans-serif;
}
/*
@font-face {
font-family: 'VisbyCF';
font-weight: 700;
font-style: normal;
src: url('/assets/fonts/VisbyCF-Bold.otf') format('truetype');
}*/
:root {
--white: #FFFFFF;
--green: #2EA9A5;
--black: #0D111F;
}
.choose-avatar {
position: fixed;
background: var(--black);
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
}
.title {
font-weight: 700;
font-size: 24px;
}
.avatar-item {
width: 145px;
height: 145px;
background-size: cover;
border-radius: 55px;
transition: transform 500ms;
transition-timing-function: cubic-bezier(0.22, 0.11, 0.67, 0.55);
}
.avatars-container {
display: flex;
width: 500px;
height: 300px;
overflow: hidden;
justify-content: center;
align-items: center;
font-family: monospace;
position: relative;
gap: 50px;
}
.avatars-container.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0