※デベロッパーツール等でソースコードをご確認ください(Please check using Developer tools)
Dummytext01
<div class="wrap">
<p class="text">Dummytext01</p>
</div>
$(function(){
$('.text').children().addBack().contents().each(function() {
$(this).replaceWith($(this).text().replace(/(\S)/g, '$&'));
});
setTimeout(function(){
$(".text").addClass("active01");
},100);
setTimeout(function(){
$(".text").addClass("active02");
},400);
});
.wrap {
width: 768px;
margin: 0 auto;
}
.text {
margin: 100px 0 0;
text-align: center;
font-size: 50px;
}
.text-move {
display: inline-block;
}
.text-move span {
display: inline-block;
transform: scale(0) translateY(0px);
transform-origin: top right;
transition: all 0.3s linear;
font-size: 50px;
opacity: 0;
}
.text.active01 .text-move span {
transform: scale(0.4) translateY(50px);
opacity: 1;
}
.text.active02 .text-move span {
transform: scale(1) translateY(0px);
transition: all 0.6s linear;
}
@media screen and (max-width:640px){
.wrap {
width: 100%;
}
.text-move {
font-size: 30px;
}
}