お知らせ
お知らせ:ダミーテキストだみーてきすとダミーテキストだみーてきすとダミーテキストだみーてきすとダミーテキストだみーてきすとダミーテキスト
お知らせ:ダミーテキストだみーてきすとダミーテキストだみーてきすとダミーテキストだみーてきすとダミーテキストだみーてきすとダミーテキスト
<div class="box">
<div class="content">
<h2>お知らせ</h2>
<p>お知らせ:ダミーテキストだみーてきすとダミーテキストだみーてきすとダミーテキストだみーてきすとダミーテキストだみーてきすとダミーテキスト</p>
</div>
</div>
.box .content {
height: 100%;
background-color: pink;
}
.box {
width: 240px;
height: 240px;
box-sizing: border-box;
margin:20px auto;
padding: 12px;
position: relative;
overflow: hidden;
}
.box::before {
content: '';
position: absolute;
width: 150%;
height: 150%;
background: repeating-linear-gradient(
white 0%,
white 7.5px,
orange 7.5px,
orange 15px,
white 15px,
white 22.5px,
orange 22.5px,
orange 30px);
transform: translateX(-20%) translateY(-20%) rotate(-45deg);
animation: animate 20s linear infinite;
}
.box .content {
position: relative;
background-color: white;
flex-direction: column;
box-sizing: border-box;
padding: 16px;
text-align: center;
font-family: sans-serif;
z-index: 2;
}
.box,
.box .content {
box-shadow: 0 0 2px deeppink,
0 0 5px rgba(0, 0, 0, 1),
inset 0 0 5px rgba(0, 0, 0, 1);
border-radius: 10px;
}
@keyframes animate {
from {
background-position: 0;
}
to {
background-position: 0 450px;
}
}