Skip to content

Commit 8e79c5d

Browse files
dazzel3Violet-Bora-Lee
authored andcommitted
[CSS animation] 처음~transition-delay 번역
1 parent 5ba017d commit 8e79c5d

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

7-animation/2-css-animations/article.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# CSS-animations
1+
# CSS 애니메이션
22

3-
CSS animations allow to do simple animations without JavaScript at all.
3+
CSS 애니메이션은 자바스크립트 없이도 간단한 애니메이션을 만들 수 있습니다.
44

5-
JavaScript can be used to control CSS animation and make it even better with a little of code.
5+
자바스크립트는 CSS 애니메이션을 제어하고 보다 짧은 코드로 훨씬 더 효과적인 애니메이션을 만듭니다.
66

7-
## CSS transitions [#css-transition]
7+
## CSS 전환 [#css-transition]
88

9-
The idea of CSS transitions is simple. We describe a property and how its changes should be animated. When the property changes, the browser paints the animation.
9+
CSS 전환의 발상은 간단합니다. 어떤 프로퍼티와 그 프로퍼티가 어떻게 활성화되는지 나타냅니다. 그 프로퍼티가 변할 때, 브라우저에 애니메이션이 보이게 됩니다.
1010

11-
That is: all we need is to change the property. And the fluent transition is made by the browser.
11+
즉, 프로퍼티를 변하게 해야 합니다. 그래야 브라우저를 통해 자연스러운 전환이 됩니다.
1212

13-
For instance, the CSS below animates changes of `background-color` for 3 seconds:
13+
예를 들어 아래에 있는 CSS는 3초 동안 `background-color` 를 변하게 해줍니다.
1414

1515
```css
1616
.animated {
@@ -19,9 +19,9 @@ For instance, the CSS below animates changes of `background-color` for 3 seconds
1919
}
2020
```
2121

22-
Now if an element has `.animated` class, any change of `background-color` is animated during 3 seconds.
22+
이제 어떤 요소가 `.animated` 클래스를 가지고 있다면, `background-color` 의 변화는 3초 동안 애니메이션을 통해 나타날 것입니다.
2323

24-
Click the button below to animate the background:
24+
배경의 변화를 위해 아래의 버튼을 클릭해보세요.
2525

2626
```html run autorun height=60
2727
<button id="color">Click me</button>
@@ -40,16 +40,16 @@ Click the button below to animate the background:
4040
</script>
4141
```
4242

43-
There are 4 properties to describe CSS transitions:
43+
CSS 전환을 나타내는 4가지 프로퍼티 입니다.
4444

4545
- `transition-property`
4646
- `transition-duration`
4747
- `transition-timing-function`
4848
- `transition-delay`
4949

50-
We'll cover them in a moment, for now let's note that the common `transition` property allows to declare them together in the order: `property duration timing-function delay`, and also animate multiple properties at once.
50+
이 4가지 프로퍼티는 잠시후에 다루도록 하구요, 지금은 흔히 쓰이는 `transition` 프로퍼티가 어떤 순서대로 4가지 프로퍼티를 선언하는지 알아봅시다. `property duration timing-function delay` 의 순서로, 여러개의 프로퍼티를 한번에 사용할 수 있습니다.
5151

52-
For instance, this button animates both `color` and `font-size`:
52+
예를 들어 아래의 버튼은 `color` `font-size`에 애니메이션 효과가 나타납니다.
5353

5454
```html run height=80 autorun no-beautify
5555
<button id="growing">Click me</button>
@@ -70,29 +70,29 @@ growing.onclick = function() {
7070
</script>
7171
```
7272

73-
Now let's cover animation properties one by one.
73+
이제 애니메이션 프로퍼티에 대해 하나씩 살펴봅시다.
7474

75-
## transition-property
75+
## 'transition-property' 프로퍼티
7676

77-
In `transition-property` we write a list of property to animate, for instance: `left`, `margin-left`, `height`, `color`.
77+
`transition-property` 프로퍼티를 통해 애니메이션을 위한 프로퍼티 목록을 작성합니다. 예시: `left`, `margin-left`, `height`, `color`
7878

79-
Not all properties can be animated, but [many of them](http://www.w3.org/TR/css3-transitions/#animatable-properties-). The value `all` means "animate all properties".
79+
모든 프로퍼티가 애니메이션 효과를 나타낼 순 없지만, [많은 프로퍼티](http://www.w3.org/TR/css3-transitions/#animatable-properties-)가 가능합니다. 프로퍼티의 값인 `all`은 모든 프로퍼티가 전환될 수 있음을 의미합니다.
8080

81-
## transition-duration
81+
## 'transition-duration' 프로퍼티
8282

83-
In `transition-duration` we can specify how long the animation should take. The time should be in [CSS time format](http://www.w3.org/TR/css3-values/#time): in seconds `s` or milliseconds `ms`.
83+
`transition-duration` 프로퍼티를 통해 애니메이션 시간이 얼마나 걸릴지 설정할 수 있습니다. 시간은 [CSS 시간 단위](http://www.w3.org/TR/css3-values/#time)인 초 단위를 나타내는 `s` 또는 밀리초 단위를 나타내는 `ms`를 사용해야 합니다.
8484

85-
## transition-delay
85+
## 'transition-delay' 프로퍼티
8686

87-
In `transition-delay` we can specify the delay *before* the animation. For instance, if `transition-delay: 1s`, then animation starts after 1 second after the change.
87+
`transition-delay` 프로퍼티를 통해 애니메이션 *시작 전*의 지연 시간을 설정할 수 있습니다. 예를 들어 `transition-delay: 1s` 이면, 애니메이션은 1초 후에 나타나게 됩니다.
8888

89-
Negative values are also possible. Then the animation starts from the middle. For instance, if `transition-duration` is `2s`, and the delay is `-1s`, then the animation takes 1 second and starts from the half.
89+
음의 값도 가능합니다. 그러면 애니메이션은 중간부터 시작하게 됩니다. 예를 들어 `transition-duration``2s`이고, 지연 시간은 `-1s`일 때, 애니메이션은 1초가 걸리고 딱 중간부터 시작합니다.
9090

91-
Here's the animation shifts numbers from `0` to `9` using CSS `translate` property:
91+
여기 CSS `translate` 프로퍼티를 사용하여 `0`부터 `9`까지 숫자가 변하는 애니메이션이 있습니다.
9292

9393
[codetabs src="digits"]
9494

95-
The `transform` property is animated like this:
95+
`transform` 프로퍼티는 다음과 같이 작성되었습니다.
9696

9797
```css
9898
#stripe.animate {
@@ -102,25 +102,25 @@ The `transform` property is animated like this:
102102
}
103103
```
104104

105-
In the example above JavaScript adds the class `.animate` to the element -- and the animation starts:
105+
위의 예시에서 자바스크립트는 요소에 `.animate`라는 이름의 클래스를 추가했습니다. 그리고 애니메이션이 나타납니다.
106106

107107
```js
108108
stripe.classList.add('animate');
109109
```
110110

111-
We can also start it "from the middle", from the exact number, e.g. corresponding to the current second, using the negative `transition-delay`.
111+
또한 `transition-delay`에서 음의 값을 사용하여, 특정 숫자에서(예: 현재 2초에 해당하는 숫자) "중간부터" 시작할 수 있다.
112112

113-
Here if you click the digit -- it starts the animation from the current second:
113+
여기 숫자를 클릭하면 현재 2초에 해당하는 숫자부터 애니메이션이 시작될 것입니다.
114114

115115
[codetabs src="digits-negative-delay"]
116116

117-
JavaScript does it by an extra line:
117+
자바스크립트에서는 위의 내용을 별도의 행으로 실행합니다.
118118

119119
```js
120120
stripe.onclick = function() {
121121
let sec = new Date().getSeconds() % 10;
122122
*!*
123-
// for instance, -3s here starts the animation from the 3rd second
123+
// 예를 들어, 여기에서의 -3s는 3초부터 애니메이션을 시작합니다.
124124
stripe.style.transitionDelay = '-' + sec + 's';
125125
*/!*
126126
stripe.classList.add('animate');

0 commit comments

Comments
 (0)