From 60d01fd0116959a453a95ff27a5c206b19cfe39e Mon Sep 17 00:00:00 2001 From: InanBerkin Date: Wed, 4 Nov 2020 12:16:22 +0000 Subject: [PATCH 1/4] translate article --- 7-animation/2-css-animations/article.md | 246 ++++++++++++------------ 1 file changed, 123 insertions(+), 123 deletions(-) diff --git a/7-animation/2-css-animations/article.md b/7-animation/2-css-animations/article.md index 844a27587..6975db664 100644 --- a/7-animation/2-css-animations/article.md +++ b/7-animation/2-css-animations/article.md @@ -1,16 +1,16 @@ -# CSS-animations +# CSS Animasyonları -CSS animations allow to do simple animations without JavaScript at all. +CSS animasyonları basit animasyonları JavaScript kullanmadan yapmayı sağlar. -JavaScript can be used to control CSS animation and make it even better with a little of code. +JavaScript, CSS animasyonlarını kontrol etmek ve biraz kodla daha iyi hale getirmek için kullanılabilir. -## CSS transitions [#css-transition] +## CSS Geçişleri [#css-transition] -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. +CSS geçişlerinin fikri basittir. Bir özelliği ve o özelliğin değişiminin nasıl anime edileceğini tanımlarız. O özellik değiştiğinde, tarayıcı animasyonu çizer. -That is: all we need is to change the property. And the fluent transition is made by the browser. +Yani, yapmamız gereken tek şey özelliği değiştirmek. Özelliğin değişiminin nasıl çizileceğini tarayıcı halledecektir. -For instance, the CSS below animates changes of `background-color` for 3 seconds: +Örneğin, aşağıdaki CSS `background-color` özelliğindeki değişimlerin animasyonunu 3 saniye boyunca oynatır. ```css .animated { @@ -19,12 +19,12 @@ For instance, the CSS below animates changes of `background-color` for 3 seconds } ``` -Now if an element has `.animated` class, any change of `background-color` is animated during 3 seconds. +Şimdi, eğer bir element `.animated` sahipse, `background-color` özelliğindeki herhangi bir değişiklik 3 saniye boyunca canlandırılır. -Click the button below to animate the background: +Arka planın animasyonunu oynatmak için aşagıdaki tuşa tıkla: ```html run autorun height=60 - + ``` -There are many articles about `@keyframes` and a [detailed specification](https://drafts.csswg.org/css-animations/). +`@keyframes` hakkında birçok makale ve [detaylı açıklamasını](https://drafts.csswg.org/css-animations/) bulabilirsiniz. -Probably you won't need `@keyframes` often, unless everything is in the constant move on your sites. +Büyük ihtimalle `@keyframes`'e çok sık ihtiyacınız olmayacak, sitenizdeki her şey sürekli hareket etmediği takdirde. -## Summary +## Özet -CSS animations allow to smoothly (or not) animate changes of one or multiple CSS properties. +CSS animasyonları bir veya birden fazla CSS özelliğindeki değişimlere rahatça animasyon eklememizi sağlar. -They are good for most animation tasks. We're also able to use JavaScript for animations, the next chapter is devoted to that. +Çoğu animasyon işi için iyidir. Animasyonlar ayrıca JavaScript kullanarak da eklenebilir. Bir sonraki bölüm de onun üzerine. -Limitations of CSS animations compared to JavaScript animations: +Javascript Animasyonları ile karşılaştırıldığında CSS animasyonların farkları şunlardır: ```compare plus="CSS animations" minus="JavaScript animations" -+ Simple things done simply. -+ Fast and lightweight for CPU. -- JavaScript animations are flexible. They can implement any animation logic, like an "explosion" of an element. -- Not just property changes. We can create new elements in JavaScript for purposes of animation. ++ Kolay şeyleri kolayca yapmamızı sağlar. ++ Hızlı ve CPU için hafiftir. +- JavaScript animasyonları daha esnektir. Her türlü animasyonu programlayabilmenizi sağlar. Örneğin, bir elementin 'patlama' animasyonu gibi. +- JavaScript animasyonları sadece CSS özelliği değişimleri ile sınırlı değildir. JavaScript ile bir animasyon için yeni elementler yaratabiliriz. ``` -The majority of animations can be implemented using CSS as described in this chapter. And `transitionend` event allows to run JavaScript after the animation, so it integrates fine with the code. +Animasyonların çoğu bu bölümde anlatıldığı gibi CSS ile gerçekleştirilebilir. `transitionend` event'i animasyon bittikten sonra JavaScript kodu çalıştırmamızı sağlar. Bu sayede kodla da kolayca entegre edilebilir. -But in the next chapter we'll do some JavaScript animations to cover more complex cases. +Bir sonraki bölümde daha karmaşık animasyonlar için JavaScript animasyonları kullanacağız. From 9c39fc8688eb3a76cfda9db7ec3c3fc20389e653 Mon Sep 17 00:00:00 2001 From: InanBerkin Date: Wed, 4 Nov 2020 12:25:24 +0000 Subject: [PATCH 2/4] translate plane task --- .../2-css-animations/1-animate-logo-css/solution.md | 8 ++++---- .../1-animate-logo-css/solution.view/index.html | 2 +- .../2-css-animations/1-animate-logo-css/task.md | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/7-animation/2-css-animations/1-animate-logo-css/solution.md b/7-animation/2-css-animations/1-animate-logo-css/solution.md index 7aa7ca728..1bf6083b9 100644 --- a/7-animation/2-css-animations/1-animate-logo-css/solution.md +++ b/7-animation/2-css-animations/1-animate-logo-css/solution.md @@ -1,17 +1,17 @@ -CSS to animate both `width` and `height`: +`width` ve `height` özelliklerinin animasyonu için CSS: ```css -/* original class */ +/* orijinal class */ #flyjet { transition: all 3s; } -/* JS adds .growing */ +/* JS .growing ekliyor*/ #flyjet.growing { width: 400px; height: 240px; } ``` -Please note that `transitionend` triggers two times -- once for every property. So if we don't perform an additional check then the message would show up 2 times. +Dikkat et! `transitionend` iki kere tetikleniyor -- her özellik için bir kere. Eğer bir konrol yapmazsak mesaj 2 kere gözükecek. diff --git a/7-animation/2-css-animations/1-animate-logo-css/solution.view/index.html b/7-animation/2-css-animations/1-animate-logo-css/solution.view/index.html index 4e90e2478..2654264bb 100644 --- a/7-animation/2-css-animations/1-animate-logo-css/solution.view/index.html +++ b/7-animation/2-css-animations/1-animate-logo-css/solution.view/index.html @@ -34,7 +34,7 @@ flyjet.addEventListener('transitionend', function() { if (!ended) { ended = true; - alert('Done!'); + alert('Bitti!'); } }); diff --git a/7-animation/2-css-animations/1-animate-logo-css/task.md b/7-animation/2-css-animations/1-animate-logo-css/task.md index ed10d4ace..38d5a0f2a 100644 --- a/7-animation/2-css-animations/1-animate-logo-css/task.md +++ b/7-animation/2-css-animations/1-animate-logo-css/task.md @@ -2,13 +2,13 @@ importance: 5 --- -# Animate a plane (CSS) +# Uçağa animasyon ekle (CSS) -Show the animation like on the picture below (click the plane): +Aşağıdaki gibi bir animasyon yap (Uçağa tıkla): [iframe src="solution" height=300] -- The picture grows on click from `40x24px` to `400x240px` (10 times larger). -- The animation takes 3 seconds. -- At the end output: "Done!". -- During the animation process, there may be more clicks on the plane. They shouldn't "break" anything. +- Resim tıklanınca boyutu `40x24px`'den `400x240px`'e çıkıyor. +- Animasyon 3 saniye sürüyor. +- Bitince "Bitti!" diye mesaj göster. +- Animasyon süresince uçağa birden çok kere tıklanabilir. Bu tıklamalar bir şeyi bozmamalıdır. From 614ba8d0a4d3faacf8689763fe7fa074cc382a54 Mon Sep 17 00:00:00 2001 From: InanBerkin Date: Wed, 4 Nov 2020 12:38:59 +0000 Subject: [PATCH 3/4] translate animate the flying plane task --- .../2-animate-logo-bezier-css/solution.md | 6 +++--- .../2-css-animations/2-animate-logo-bezier-css/task.md | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/7-animation/2-css-animations/2-animate-logo-bezier-css/solution.md b/7-animation/2-css-animations/2-animate-logo-bezier-css/solution.md index 88105399c..7106f6c28 100644 --- a/7-animation/2-css-animations/2-animate-logo-bezier-css/solution.md +++ b/7-animation/2-css-animations/2-animate-logo-bezier-css/solution.md @@ -1,7 +1,7 @@ -We need to choose the right Bezier curve for that animation. It should have `y>1` somewhere for the plane to "jump out". +Animasyon için doğru Bezier eğrisini seçmemiz gerekiyor. Bir yerinde `y>1` olmalı ki uçak "dışarı taşabilsin". -For instance, we can take both control points with `y>1`, like: `cubic-bezier(0.25, 1.5, 0.75, 1.5)`. +Örneğin iki kontrol noktasını da `y>1` olacak şekilde ayarlayabiliriz: `cubic-bezier(0.25, 1.5, 0.75, 1.5)`. -The graph: +Eğrinin grafiği: ![](bezier-up.svg) diff --git a/7-animation/2-css-animations/2-animate-logo-bezier-css/task.md b/7-animation/2-css-animations/2-animate-logo-bezier-css/task.md index 9e21f4101..f3fe4f82b 100644 --- a/7-animation/2-css-animations/2-animate-logo-bezier-css/task.md +++ b/7-animation/2-css-animations/2-animate-logo-bezier-css/task.md @@ -2,12 +2,12 @@ importance: 5 --- -# Animate the flying plane (CSS) +# Havadaki uçağa animasyon ekle (CSS) -Modify the solution of the previous task to make the plane grow more than it's original size 400x240px (jump out), and then return to that size. +Bir önceki görevdeki çözümü değiştirerek uçağı orijinal boyutu 400x240px'den daha büyük hale getir (dışarı taşır), ve o boyutuna geri çevir. -Here's how it should look (click on the plane): +Son hali böyle olmalı (uçağa tıkla): [iframe src="solution" height=350] -Take the solution of the previous task as the source. +Bir önceki çözümü temel alarak ilerleyebirsiniz. From a749627c30a430b84d1c5178f023ee8b6e9c89eb Mon Sep 17 00:00:00 2001 From: InanBerkin Date: Wed, 4 Nov 2020 12:44:39 +0000 Subject: [PATCH 4/4] translate animate circle task --- .../2-css-animations/3-animate-circle/task.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/7-animation/2-css-animations/3-animate-circle/task.md b/7-animation/2-css-animations/3-animate-circle/task.md index 83bbb3e84..8f1e447c9 100644 --- a/7-animation/2-css-animations/3-animate-circle/task.md +++ b/7-animation/2-css-animations/3-animate-circle/task.md @@ -2,15 +2,15 @@ importance: 5 --- -# Animated circle +# Animasyonlu Daire -Create a function `showCircle(cx, cy, radius)` that shows an animated growing circle. +`showCircle(cx, cy, radius)` şeklinde, animasyonlu bir şekilde daireyi genişleten, bir fonksiyon yarat. -- `cx,cy` are window-relative coordinates of the center of the circle, -- `radius` is the radius of the circle. +- `cx,cy` dairenin merkezinin pencereye göreceli olarak koordinatları, +- `radius` dairenin yarıçapı. -Click the button below to see how it should look like: +Aşağıdaki tuşa tıklayarak nasıl gözükmesi gerektiğini görebilirsin. [iframe src="solution" height=260] -The source document has an example of a circle with right styles, so the task is precisely to do the animation right. +Kaynak dökümanın içinde aynı şekilde çizilmiş bir daire var, bu görevin amacı sadece animasyonu doğru bir şekilde yapmak.