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 发布文章使用:只允许注册用户才可以访问!


最新文章

  1. SQLSERVER查询连接数
  2. OpenFlow Switch学习笔记(一)——基础概念
  3. C#连接SQLite数据库方法
  4. Visual C++内存泄露检测—VLD工具使用说明
  5. SqlServer 还原,备份 Sql脚本命令
  6. 在一个RAC集群中最多支持多少节点
  7. getScrollX()理解
  8. java中的equals()方法
  9. nagios总结二
  10. centos下搭建多项目svn服务器
  11. 【转载】tomcat+nginx+redis实现均衡负载、session共享(二)
  12. dubbo不完全指南
  13. arcgis api 3.x for js 入门开发系列二十一气泡窗口信息动态配置模板
  14. Python爬虫 爬取百合网的女人们和男人们
  15. AGC016D - XOR Replace 置换/轮换
  16. JDBC——Java语言连接数据库的标准
  17. ng-packagr 不能全部打包文件
  18. Day 6-2简单的socket通信
  19. 树莓派3b安装Nginx和php7和百度语音合成模块
  20. XtraEditors二、ComboBox、ComboBoxEdit、CheckedComboBoxEdit

热门文章

  1. 存储型XSS
  2. Docker中运行nginx
  3. scala 时间,时间格式转换
  4. 数字转金额格式* 999999.99 TO 999,999.99
  5. Think in Java 第四 五 章
  6. 腾讯云TcaplusDB获新加坡MTCS最高等级安全认证
  7. POJ1113:Wall (凸包算法学习)
  8. 【uva 1515】Pool construction(图论--网络流最小割 模型题)
  9. hdu5459 Jesus Is Here
  10. JavaScript——原型