※デベロッパーツール等でソースコードをご確認ください(Please check using Developer tools)
Dummy Text
.box {
padding: 50px 0;
text-align: center;
}
.text {
display: inline-block;
line-height: 1.5;
clip-path: polygon(0 0,0 0,0 100%,0 100%);
}
.text.active {
animation: text 2s cubic-bezier(1,0,0,1) 1.2s normal forwards;
}
.text span {
padding: 0 20px;
font-size: 50px;
font-weight: 700;
background: linear-gradient(transparent,#fcff38 0);
}
@keyframes text {
0% {
clip-path: polygon(0 0,0 0,0 100%,0 100%)
}
to {
clip-path: polygon(0 0,100% 0,100% 100%,0 100%)
}
}
$(window).on('load', function(){
$(".text").addClass("active");
});