강의

멘토링

커뮤니티

Inflearn Community Q&A

khhan19901239's profile image
khhan19901239

asked

[10 minutes a day | Web Project] Create your own psychological test site with HTML/JS/CSS

Switch screens

css 질문

Written on

·

301

1

안녕하세요.

start.js 파일을 보면

begin함수에 main.style.WebkitAnimation 및

main.style.animation을 사용하셨습니다.

조금 이해가 안가는데 이 코드의 뜻이

main변수에 style을 적용할건데 animation이라는 이름의 css파일을 적용해라. 라는 뜻이 되는건가요?

HTML/CSSjavascriptbootstrap

Answer 2

2

main.style.WebkitAnimation = "fadeOut 1s";
    main.style.animation = 'fadeOut 1s';

이거 말씀하시는거라면 변수 main에  css 파일에서 만든 fadeOut라는 이름의 애니메이션을  적용하라는 뜻이에요~ animation, WebkitAnimation은 css파일 이름이 아니라 color나 display처럼 속성 이름입니다!


@keyframes fadeOut {
    from { opacity1; }
    to { opacity0; }
}

pandacoding님의 프로필 이미지
pandacoding
Instructor

대신 답변해주셔서 감사합니다 :)

0

khhan1990님의 프로필 이미지
khhan1990
Questioner

감사합니다!!

khhan19901239's profile image
khhan19901239

asked

Ask a question