css infinite loop animation
2024-10-21 12:41:04
css infinite loop animation
@keyframes loop {
0% {
transform: translateX(0%);
}
constructed stylesheet
100% {
transform: translateX(-100%);
}
}
constructed stylesheet
styled-components
https://styled-components.com/
const Button = styled.a`
/* This renders the buttons above... Edit me! */
display: inline-block;
border-radius: 3px;
padding: 0.5rem 0;
margin: 0.5rem 1rem;
width: 11rem;
background: transparent;
color: white;
border: 2px solid white;
/* The GitHub button is a primary button
* edit this to target it specifically! */
${props => props.primary && css`
background: white;
color: black;
`}
`
render(
<div>
<Button
href="https://github.com/styled-components/styled-components"
target="_blank"
rel="noopener"
primary
>
GitHub
</Button>
<Button as={Link} href="/docs">
Documentation
</Button>
</div>
)
const Button = styled.a`
/* This renders the buttons above... Edit me! */
display: inline-block;
border-radius: 3px;
padding: 0.5rem 0;
margin: 0.5rem 1rem;
width: 11rem;
background: transparent;
color: white;
border: 2px solid white;
/* The GitHub button is a primary button
* edit this to target it specifically! */
${props => props.primary && css`
background: white;
color: black;
`}
`
render(
<div>
<Button
href="https://github.com/styled-components/styled-components"
target="_blank"
rel="noopener"
primary
>
GitHub
</Button>
<Button as={Link} href="/docs">
Documentation
</Button>
</div>
)
xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
最新文章
- SQLSERVER查询连接数
- OpenFlow Switch学习笔记(一)——基础概念
- C#连接SQLite数据库方法
- Visual C++内存泄露检测—VLD工具使用说明
- SqlServer 还原,备份 Sql脚本命令
- 在一个RAC集群中最多支持多少节点
- getScrollX()理解
- java中的equals()方法
- nagios总结二
- centos下搭建多项目svn服务器
- 【转载】tomcat+nginx+redis实现均衡负载、session共享(二)
- dubbo不完全指南
- arcgis api 3.x for js 入门开发系列二十一气泡窗口信息动态配置模板
- Python爬虫 爬取百合网的女人们和男人们
- AGC016D - XOR Replace 置换/轮换
- JDBC——Java语言连接数据库的标准
- ng-packagr 不能全部打包文件
- Day 6-2简单的socket通信
- 树莓派3b安装Nginx和php7和百度语音合成模块
- XtraEditors二、ComboBox、ComboBoxEdit、CheckedComboBoxEdit