I have a Problem that my text is moving x-direction instead of 30deg. I need to move the text 30deg along. I use transform: rotate (30deg)
and I create keyframe animation on start transformX:100%
and set end transformX=-100%
but its not working.
SCreenshot
section{
height: 100vh;
width: 130%;
overflow: hidden; }
section .type-text{
display: flex;
white-space:nowrap;
overflow: hidden;
animation: animate 80s linear infinite; }}
ul{transform: rotate(-30deg);}
`@keyframes animate {
0%{
transform: translateX(100%);
}
100%{
transform: translateX(-100%);
}
}
section .animating{
animation: animate 10s linear infinite;`
<body>
<section class="type-hover">
<div id="anime" class="animating">
<ul class="type-text">
<li>Happy</li>
<li>Birthday</li>
<li>Angela</li>
<li>Moshi</li>
<li>Happy</li>
<li>Birthday</li>
<li>Angela</li>
<li>Moshi</li> <li>Happy</li>
<li>Birthday</li>
<li>Angela</li>
<li>Moshi</li>
<li>Happy</li>
<li>Birthday</li>
<li>Angela</li>
<li>Moshi</li>
</ul>
</div>
>there are more ul(s)
</section>