@keyframes progress{
from{
width: 0;
}
to{
width: 100%;
}
}
.progressbar:after{
content: '';
position: absolute;
height: 100%;
animation: progress 60s linear forwards;
}
@keyframes hide{
from{
opacity: 1;
}
to{
opacity: 0;
}
}
.progressbar{
animation: hide 100ms 60s ease-in-out;
}
.row {
margin-right: -15px;
margin-left: -65px;
width: 900px;
}
.row {
margin-right: -15px;
margin-left: -15px;
}
.cd-add{
animation: translate-opacity 1s linear forwards;
}
@keyframes translate-opacity{
0%{
transform: translate(0, 0);
opacity: 0;
}
50%{
transform: translate(0, 100px);
opacity: 0;
}
100%{
opacity: 1;
transform: translate(0, 100px);
}
}
.el{
animation: cloud1 1s ease-in-out forwards;
}
@keyframes cloud1 {
0% {
left: 500px;
opacity: 1;
}
99%{
opacity: 1;
}
100% {
left:-200px;
opacity: 0;
}
}
var $elementToHighlight = $('#someId');
$(document).on('keydown',function(e){
if(e.keyCode==13){
//enter
$elementToHighlight.addClass('hightlighted');
}
}).on('keyup',function(){
$elementToHighlight.removeClass('hightlighted');
});
overflow:hidden;
transform:scale(1.2);/*подобрать коэффициент*/