Skip to content

Commit 6cbd7dc

Browse files
authored
Update article.md
1 parent 01c5e49 commit 6cbd7dc

1 file changed

Lines changed: 12 additions & 13 deletions

File tree

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

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# CSS-animations
22

3-
CSS animations make it possible to do simple animations without JavaScript at all.
3+
نیمیشن‌های CSS امکان انجام انیمیشن‌های ساده را بدون جاوا اسکریپت فراهم می‌کنند.
44

5-
JavaScript can be used to control CSS animations and make them even better, with little 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 fluid transition will be done by the browser.
11+
یعنی تنها چیزی که نیاز داریم تغییر ویژگی است و انتقال سیال توسط مرورگر انجام می شود.
1212

13-
For instance, the CSS below animates changes of `background-color` for 3 seconds:
13+
برای مثال، CSS زیر تغییرات 'رنگ پس‌زمینه' را به مدت ۳ ثانیه متحرک می‌کند:
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' باشد، هر تغییری در 'رنگ پس‌زمینه' در طول 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+
4 ویژگی برای توصیف انتقال CSS وجود دارد:
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 declaring them together in the order: `property duration timing-function delay`, as well as animating multiple properties at once.
50+
ما آنها را در یک لحظه پوشش خواهیم داد، فعلاً توجه داشته باشیم که ویژگی مشترک 'transition' اجازه می دهد تا آنها را با هم به ترتیب اعلام کنیم: 'تأخیر زمان بندی-عملکرد مدت زمان' و همچنین متحرک سازی چندین ویژگی به طور همزمان.
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,8 +70,7 @@ growing.onclick = function() {
7070
</script>
7171
```
7272

73-
Now, let's cover animation properties one by one.
74-
73+
حالا بیایید ویژگی های انیمیشن را یکی یکی پوشش دهیم.
7574
## transition-property
7675

7776
In `transition-property`, we write a list of properties to animate, for instance: `left`, `margin-left`, `height`, `color`. Or we could write `all`, which means "animate all properties".

0 commit comments

Comments
 (0)