• 直播气泡滚动效果


    .bub1>p{
    	animation: beatn 6s ease 0s infinite normal;
    }
    .bub2>p{
    	animation: beatu 6s ease 2s infinite normal;
    }
    .bub3>p{
    	animation: beatt 6s ease 4s infinite normal;
    }
    @keyframes beatn {
    	0% {
    		transform: translateY(34px);
    		background: #444;
    		opacity: 1;
    		background-color: 
    	}	
    	17% {
    		transform: translateY(0px);
    		background: #444;
    		opacity: 1;
    	}
    	33% {
    		transform: translateY(0px);
    		background: #444;
    		opacity: 1;
    	}
    	50% {
    		transform: translateY(-34px);
    		display: flex;
    		align-items:center;
    		height: 25px;
    		background: -webkit-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Safari 5.1 - 6 */
    		background: -o-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Opera 11.1 - 12*/
    		background: -moz-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Firefox 3.6 - 15*/
    		background: linear-gradient(to top, rgba(68,68,68,1),rgba(68,68,68,0)); /* 标准的语法 */
    		border: none;
    		outline: none;
    		border-radius: 25px;
    		padding: 2px 15px;
    		font-size: 12px;
    		color: #fff;
    	}
    	66% {
    		transform: translateY(-34px);
    		display: flex;
    		align-items:center;
    		height: 25px;
    		background: -webkit-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Safari 5.1 - 6 */
    		background: -o-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Opera 11.1 - 12*/
    		background: -moz-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Firefox 3.6 - 15*/
    		background: linear-gradient(to top, rgba(68,68,68,1),rgba(68,68,68,0)); /* 标准的语法 */
    		border: none;
    		outline: none;
    		border-radius: 25px;
    		padding: 2px 15px;
    		font-size: 12px;
    		color: #fff;
    	}
    	85% {
    		transform: translateY(-68px);
    		display: flex;
    		align-items:center;
    		height: 25px;
    		background: -webkit-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Safari 5.1 - 6 */
    		background: -o-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Opera 11.1 - 12*/
    		background: -moz-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Firefox 3.6 - 15*/
    		background: linear-gradient(to top,rgba(68,68,68,0),rgba(68,68,68,0)); /* 标准的语法 */
    		border: none;
    		outline: none;
    		border-radius: 25px;
    		padding: 2px 15px;
    		font-size: 11px;
    		color: #fff;
    		opacity: 0.5;
    	}
    	100% {
    		transform: translateY(-68px);
    		display: flex;
    		align-items:center;
    		height: 25px;
    		background: -webkit-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Safari 5.1 - 6 */
    		background: -o-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Opera 11.1 - 12*/
    		background: -moz-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Firefox 3.6 - 15*/
    		background: linear-gradient(to top,rgba(68,68,68,0),rgba(68,68,68,0)); /* 标准的语法 */
    		border: none;
    		outline: none;
    		border-radius: 25px;
    		padding: 2px 15px;
    		font-size: 11px;
    		color: #fff;
    		opacity: 0.5;
    	}
    }
    @keyframes beatu {
    	0% {
    		transform: translateY(68px);
    		background: #444;
    		opacity: 1;
    	}	
    	17% {
    		transform: translateY(34px);
    		background: #444;
    		opacity: 1;
    	}
    	33% {
    		transform: translateY(34px);
    		background: #444;
    		opacity: 1;
    	}
    	50% {
    		transform: translateY(0px);
    		display: flex;
    		align-items:center;
    		height: 25px;
    		background: -webkit-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Safari 5.1 - 6 */
    		background: -o-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Opera 11.1 - 12*/
    		background: -moz-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Firefox 3.6 - 15*/
    		background: linear-gradient(to top, rgba(68,68,68,1),rgba(68,68,68,0)); /* 标准的语法 */
    		border: none;
    		outline: none;
    		border-radius: 25px;
    		padding: 2px 15px;
    		font-size: 12px;
    		color: #fff;
    	}
    	66% {
    		transform: translateY(0px);
    		display: flex;
    		align-items:center;
    		height: 25px;
    		background: -webkit-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Safari 5.1 - 6 */
    		background: -o-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Opera 11.1 - 12*/
    		background: -moz-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Firefox 3.6 - 15*/
    		background: linear-gradient(to top, rgba(68,68,68,1),rgba(68,68,68,0)); /* 标准的语法 */
    		border: none;
    		outline: none;
    		border-radius: 25px;
    		padding: 2px 15px;
    		font-size: 12px;
    		color: #fff;
    	}
    	85% {
    		transform: translateY(-34px);
    		display: flex;
    		align-items:center;
    		height: 25px;
    		background: -webkit-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Safari 5.1 - 6 */
    		background: -o-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Opera 11.1 - 12*/
    		background: -moz-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Firefox 3.6 - 15*/
    		background: linear-gradient(to top,rgba(68,68,68,0),rgba(68,68,68,0)); /* 标准的语法 */
    		border: none;
    		outline: none;
    		border-radius: 25px;
    		padding: 2px 15px;
    		font-size: 11px;
    		color: #fff;
    		opacity: 0.5;
    	}
    	100% {
    		transform: translateY(-34px);
    		display: flex;
    		align-items:center;
    		height: 25px;
    		background: -webkit-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Safari 5.1 - 6 */
    		background: -o-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Opera 11.1 - 12*/
    		background: -moz-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Firefox 3.6 - 15*/
    		background: linear-gradient(to top,rgba(68,68,68,0),rgba(68,68,68,0)); /* 标准的语法 */
    		border: none;
    		outline: none;
    		border-radius: 25px;
    		padding: 2px 15px;
    		font-size: 11px;
    		color: #fff;
    		opacity: 0.5;
    	}
    }
    @keyframes beatt {
    	0% {
    		transform: translateY(102px);
    		background: #444;
    		opacity: 1;
    	}	
    	17% {
    		transform: translateY(68px);
    		background: #444;
    		opacity: 1;
    	}
    	33% {
    		transform: translateY(68px);
    		background: #444;
    		opacity: 1;
    	}
    	50% {
    		transform: translateY(34px);
    		display: flex;
    		align-items:center;
    		height: 25px;
    		background: -webkit-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Safari 5.1 - 6 */
    		background: -o-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Opera 11.1 - 12*/
    		background: -moz-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Firefox 3.6 - 15*/
    		background: linear-gradient(to top, rgba(68,68,68,1),rgba(68,68,68,0)); /* 标准的语法 */
    		border: none;
    		outline: none;
    		border-radius: 25px;
    		padding: 2px 15px;
    		font-size: 12px;
    		color: #fff;
    	}
    	66% {
    		transform: translateY(34px);
    		display: flex;
    		align-items:center;
    		height: 25px;
    		background: -webkit-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Safari 5.1 - 6 */
    		background: -o-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Opera 11.1 - 12*/
    		background: -moz-linear-gradient(top,rgba(68,68,68,1),rgba(68,68,68,0)); /* Firefox 3.6 - 15*/
    		background: linear-gradient(to top,rgba(68,68,68,1),rgba(68,68,68,0)); /* 标准的语法 */
    		border: none;
    		outline: none;
    		border-radius: 25px;
    		padding: 2px 15px;
    		font-size: 12px;
    		color: #fff;
    	}
    	85% {
    		transform: translateY(0px);
    		display: flex;
    		align-items:center;
    		height: 25px;
    		background: -webkit-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Safari 5.1 - 6 */
    		background: -o-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Opera 11.1 - 12*/
    		background: -moz-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Firefox 3.6 - 15*/
    		background: linear-gradient(to top,rgba(68,68,68,0),rgba(68,68,68,0)); /* 标准的语法 */
    		border: none;
    		border: none;
    		outline: none;
    		border-radius: 25px;
    		padding: 2px 15px;
    		font-size: 11px;
    		color: #fff;
    		opacity: 0.5;
    	}
    	100% {
    		transform: translateY(0px);
    		display: flex;
    		align-items:center;
    		height: 25px;
    		background: -webkit-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Safari 5.1 - 6 */
    		background: -o-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Opera 11.1 - 12*/
    		background: -moz-linear-gradient(top,rgba(68,68,68,0),rgba(68,68,68,0)); /* Firefox 3.6 - 15*/
    		background: linear-gradient(to top,rgba(68,68,68,0),rgba(68,68,68,0)); /* 标准的语法 */
    		border: none;
    		outline: none;
    		border-radius: 25px;
    		padding: 2px 15px;
    		font-size: 11px;
    		color: #fff;
    		opacity: 0.5;
    	}
    }
    

      

    效果图:

  • 相关阅读:
    Collection(集合)知识点总结
    【Mysql 学习】mysql 的使用复习
    解决Address localhost:1099 is already in use
    mysql8.0中dcl语句修改密码的语法
    mysql+sqlyog 多表查询练习
    MySQL 8.0 Public Key Retrieval is not allowed 错误的解决方法
    JDBC连接Mysql 8.0.12版本的几个注意事项
    JSTL学习
    64-多个参数个数
    63-参数的使用
  • 原文地址:https://www.cnblogs.com/-rainbow-/p/8545685.html
Copyright © 2020-2023  润新知