비전공자 개발일기

TEXT OVERFLOW & LOADING ANIMATION 본문

HTML _CSS

TEXT OVERFLOW & LOADING ANIMATION

HiroDaegu 2022. 4. 17. 01:35
728x90
SMALL

TEXT OVERFLOW

<p class="text">What is Lorem Ipsum?

Lorem Ipsum is simply dummy text of the printing and 
typesetting industry. Lorem Ipsum has been the industry's 
standard dummy text ever since the 1500s, when an unknown 
printer took a galley of type and scrambled it to make a 
type specimen book. It has survived not only five centuries, 
but also the leap into electronic typesetting, 
remaining essentially unchanged. 

It was popularised in the 1960s with the release of Letraset 
sheets containing Lorem Ipsum passages, and more recently 
with desktop publishing software like Aldus PageMaker 
including versions of Lorem Ipsum.</p>
.text {
  white-space: nowrap;
  width: 200px;
  border: 1px solid #000;
  overflow: hidden;
  text-overflow: ellipsis;
}

LOADING ANIMATION

 

<span class="loader"></span>
.loader {
  width: 100px;
  height: 100px;
  postion: relative;
}

.loader::before, 
.loader::after {
  content: "";
  position: absolute;
  width: inherit;
  height: inherit;
  border-radius: 50%;
  mix-blend-mode: multiply;
  animation: rotate 1s infinite cubic-bezier(0.77, 0, 0.175, 1);
}

.loader::before {
  background-color: #fc3f9e;
}

.loader::after {
  background-color: #50e8f3;
  animation-delay: .5s;
}

@keyframes rotate {
  0%, 100% {
    left: 95px;
  }
  25% {
    transform: scale(.3);
  }
  50% {
    left: 0;
  }
  75% {
    transform: scale(1);
  }
}
728x90
LIST

'HTML _CSS' 카테고리의 다른 글

Edge Motion  (0) 2022.04.20
Link Hover Animation  (0) 2022.04.19
filter() Animation  (0) 2022.04.16
Card Animation  (0) 2022.04.15
Button Purse AniMation  (0) 2022.04.14