Skip to content

Commit 651a110

Browse files
committed
Termino traducción de las secciones:
- Animation Resources - Design Patterns (cambios menores) - ES6 Concepts - Interview Questions
1 parent 87535b6 commit 651a110

File tree

15 files changed

+1327
-297
lines changed

15 files changed

+1327
-297
lines changed

es/animation-resources/README.md

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,50 @@
22
layout: editorial
33
chapter: 26
44
pageNumber: 252
5-
description: JavaScript animation resources, including libraries, tutorials, articles, and frameworks to create engaging animations.
5+
description: Recursos de animación de JavaScript, incluidas bibliotecas, tutoriales, artículos y marcos para crear animaciones atractivas.
66
---
77

8-
# Chapter 26
9-
# Animation Resources
8+
# Capítulo 26
109

11-
Animations in JavaScript are a powerful way to create engaging user experiences on the web. This chapter will cover various resources, including libraries, tutorials, articles, and frameworks, that assist developers in creating animations using JavaScript.
10+
## Recursos de animación
1211

13-
## Introduction to JavaScript Animations
12+
Las animaciones en JavaScript son una forma eficaz de crear experiencias de usuario atractivas en la Web. En este capítulo se tratarán diversos recursos, incluidas bibliotecas, tutoriales, artículos y marcos de trabajo, que ayudan a los desarrolladores a crear animaciones con JavaScript.
1413

15-
JavaScript animations allow developers to create dynamic, visually appealing web content. Animations can be used for various purposes, such as enhancing user interfaces, providing feedback, and making content more engaging.
14+
## Introducción a las animaciones de JavaScript
1615

17-
### Libraries
16+
Las animaciones de JavaScript permiten a los desarrolladores crear contenido web dinámico y visualmente atractivo. Las animaciones se pueden utilizar para diversos fines, como mejorar las interfaces de usuario, proporcionar comentarios y hacer que el contenido sea más atractivo.
1817

19-
JavaScript animation libraries make it easier to create complex animations. Here are some popular libraries:
18+
### Bibliotecas
2019

21-
1. **[GSAP (GreenSock Animation Platform)](https://greensock.com/gsap/)**: A powerful library for creating high-performance animations.
22-
2. **[Anime.js](https://animejs.com/)**: A lightweight library for handling animations.
23-
3. **[Three.js](https://threejs.org/)**: A library for creating 3D animations.
24-
4. **[Velocity.js](http://velocityjs.org/)**: A fast animation engine.
20+
Las bibliotecas de animación de JavaScript facilitan la creación de animaciones complejas. Estas son algunas bibliotecas populares:
2521

26-
### Tutorials
22+
1. **[GSAP (GreenSock Animation Platform)](https://greensock.com/gsap/)**: Una potente biblioteca para crear animaciones de alto rendimiento.
23+
2. **[Anime.js](https://animejs.com/)**: Una biblioteca ligera para gestionar animaciones.
24+
3. **[Three.js](https://threejs.org/)**: Una biblioteca para crear animaciones 3D.
25+
4. **[Velocity.js](http://velocityjs.org/)**: Un motor de animación rápido.
2726

28-
To get started with JavaScript animations, check out these tutorials:
27+
### Tutoriales
2928

30-
1. **[MDN Web Docs: Using CSS animations](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Animations/Using_CSS_animations)**: A comprehensive guide on CSS animations.
31-
2. **[JavaScript.info: JavaScript Animations](https://javascript.info/js-animation/)**: An introduction to JavaScript animations.
32-
3. **[GreenSock Learning Resources](https://greensock.com/learning/)**: Tutorials and resources for learning GSAP.
29+
Para comenzar a utilizar animaciones en JavaScript, consulte estos tutoriales:
3330

34-
### Frameworks
31+
1. **[MDN Web Docs: Usando animaciones CSS](https://developer.mozilla.org/es/docs/Web/CSS/CSS_Animations/Using_CSS_animations)**: Una guía completa sobre animaciones CSS.
32+
2. **[JavaScript.info: JavaScript Animations](https://javascript.info/js-animation/)**: Una introducción a las animaciones de JavaScript.
33+
3. **[GreenSock Learning Resources](https://greensock.com/learning/)**: Tutoriales y recursos para aprender GSAP.
3534

36-
Frameworks provide a structured approach to building animations. Some popular frameworks include:
35+
### Marcos de trabajo (Frameworks, en inglés)
3736

38-
1. **[React Spring](https://react-spring.io/)**: A spring-physics based animation library for React.
39-
2. **[Framer Motion](https://www.framer.com/motion/)**: A production-ready motion library for React.
37+
Los marcos de trabajo proporcionan un enfoque estructurado para crear animaciones. Algunos marcos de trabajo populares son:
4038

41-
In this chapter, we will explore the following topics in detail:
39+
1. **[React Spring](https://react-spring.io/)**: Una biblioteca de animación basada en física de resortes para React.
40+
2. **[Framer Motion](https://www.framer.com/motion/)**: Una biblioteca de movimiento lista para producción para React.
4241

43-
* [Getting Started with GSAP](./gsap.md)
44-
* [Creating Animations with Anime.js](./animejs.md)
45-
* [3D Animations with Three.js](./threejs.md)
46-
* [Fast Animations with Velocity.js](./velocityjs.md)
47-
* [Using React Spring for Animations](./react-spring.md)
48-
* [Animating with Framer Motion](./framer-motion.md)
42+
En este capítulo, exploraremos los siguientes temas en detalle:
4943

50-
Let's dive into each topic to understand how to use these resources effectively.
44+
* [Introducción a GSAP](./gsap.md)
45+
* [Creando animaciones con Anime.js](./animejs.md)
46+
* [Animaciones 3D con Three.js](./threejs.md)
47+
* [Animaciones rápidas con Velocity.js](./velocityjs.md)
48+
* [Uso de React Spring para animaciones](./react-spring.md)
49+
* [Animación con Framer Motion](./framer-motion.md)
50+
51+
Profundicemos en cada tema para comprender cómo utilizar estos recursos de manera efectiva.

es/animation-resources/animejs.md

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
---
22
chapter: 26
33
pageNumber: 254
4-
description: Creating animations with Anime.js, a lightweight JavaScript animation library.
4+
description: Creación de animaciones con Anime.js, una biblioteca de animación JavaScript ligera.
55
---
66

7-
## Creating Animations with Anime.js
7+
# Creación de animaciones con Anime.js
88

9-
Anime.js is a lightweight JavaScript animation library with a simple yet powerful API.
9+
Anime.js es una biblioteca de animación de JavaScript liviana con una API simple pero poderosa.
1010

11-
**Installation**
11+
## Instalación
1212

13-
You can include Anime.js in your project using npm:
13+
Puedes incluir Anime.js en tu proyecto usando npm:
1414

1515
```bash
1616
npm install animejs
1717
```
1818

19-
Or you can use a CDN:
19+
O puedes utilizar un CDN:
2020

2121
```html
2222
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js"></script>
2323
```
2424

25-
**Basic Animation**
25+
## Animación básica
2626

27-
Here's a simple example of using Anime.js to animate an element:
27+
A continuación se muestra un ejemplo sencillo del uso de Anime.js para animar un elemento:
2828

2929
```html
3030
<!DOCTYPE html>
31-
<html lang="en">
31+
<html lang="es">
3232
<head>
3333
<meta charset="UTF-8">
3434
<meta name="viewport" content="width=device-width, initial-scale=1.0">
35-
<title>Anime.js Animation</title>
35+
<title>Animación Anime.js</title>
3636
</head>
3737
<body>
3838
<div id="box" style="width:100px; height:100px; background-color:red;"></div>
@@ -48,13 +48,12 @@ Here's a simple example of using Anime.js to animate an element:
4848
</html>
4949
```
5050

51-
**Advanced Animation**
51+
## Animación avanzada
5252

53-
Anime.js provides various features for advanced animations, such as keyframes, timeline, and easing.
53+
Anime.js proporciona varias funciones para animaciones avanzadas, como fotogramas clave, línea de tiempo y suavizado.
5454

55-
56-
- **Keyframes:**
57-
Keyframes allow you to define multiple stages of an animation. Here's an example:
55+
- **Fotogramas clave:**
56+
Los fotogramas clave permiten definir varias etapas de una animación. A continuación, se muestra un ejemplo:
5857

5958
```javascript
6059
anime({
@@ -69,9 +68,8 @@ anime({
6968
});
7069
```
7170

72-
73-
- **Timeline:**
74-
Timelines allow you to sequence animations. Here's an example:
71+
- **Línea de tiempo:**
72+
Las líneas de tiempo permiten secuenciar animaciones. A continuación, se muestra un ejemplo:
7573

7674
```javascript
7775
var tl = anime.timeline({
@@ -85,12 +83,11 @@ tl.add({
8583
}).add({
8684
targets: '#box',
8785
translateY: 250
88-
}, '-=500'); // Starts 500ms before the previous animation ends
86+
}, '-=500'); // Comienza 500 ms antes de que finalice la animación anterior.
8987
```
9088

91-
92-
- **Easing:**
93-
Anime.js provides a variety of easing options to make animations look more natural. Here's an example:
89+
- **Suavizado:**
90+
Anime.js ofrece una variedad de opciones de suavizado para que las animaciones se vean más naturales. A continuación, se muestra un ejemplo:
9491

9592
```javascript
9693
anime({
@@ -102,5 +99,5 @@ anime({
10299
```
103100

104101
{% hint style="info" %}
105-
For more details and examples, check out the Anime.js documentation.
106-
{% endhint %}
102+
Para obtener más detalles y ejemplos, consulte la documentación de Anime.js.
103+
{% endhint %}
Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
---
22
chapter: 26
33
pageNumber: 255
4-
description: Using Framer Motion for animations in React applications.
4+
description: Uso de Framer Motion para animaciones en aplicaciones React.
55
---
66

7-
## Animating with Framer Motion
7+
# Animación con Framer Motion
88

9-
Framer Motion is a production-ready motion library for React. It makes it easy to create complex animations.
9+
Framer Motion es una biblioteca de movimiento lista para producción para React. Facilita la creación de animaciones complejas.
1010

11-
**Installation**
11+
## Instalación
1212

13-
You can include Framer Motion in your project using npm:
13+
Puedes incluir Framer Motion en tu proyecto usando npm:
1414

1515
```bash
1616
npm install framer-motion
1717
```
1818

19-
**Basic Animation**
19+
## Animación básica
2020

21-
Here's a simple example of using Framer Motion to animate a component:
21+
A continuación se muestra un ejemplo sencillo del uso de Framer Motion para animar un componente:
2222

2323
```javascript
2424
import React from 'react';
@@ -27,21 +27,20 @@ import { motion } from 'framer-motion';
2727
const AnimatedComponent = () => {
2828
return (
2929
<motion.div animate={{ x: 100 }} transition={{ duration: 1 }}>
30-
I will move to the right
30+
Me moveré hacia la derecha
3131
</motion.div>
3232
);
3333
};
3434

3535
export default AnimatedComponent;
3636
```
3737

38-
**Advanced Animation**
38+
## Animación avanzada
3939

40-
Framer Motion provides various features for advanced animations, such as keyframes, gestures, and layout animations.
40+
Framer Motion proporciona varias funciones para animaciones avanzadas, como fotogramas clave, gestos y animaciones de diseño.
4141

42-
43-
- **Keyframes:**
44-
Keyframes allow you to define multiple stages of an animation. Here's an example:
42+
- **Fotogramas clave:**
43+
Los fotogramas clave permiten definir varias etapas de una animación. A continuación, se muestra un ejemplo:
4544

4645
```javascript
4746
import React from 'react';
@@ -53,17 +52,16 @@ const KeyframeComponent = () => {
5352
animate={{ x: [0, 100, 0] }}
5453
transition={{ duration: 2, ease: 'easeInOut' }}
5554
>
56-
I will move back and forth
55+
Me moveré de un lado a otro
5756
</motion.div>
5857
);
5958
};
6059

6160
export default KeyframeComponent;
6261
```
6362

64-
65-
- **Gestures**
66-
Framer Motion allows you to create animations based on user gestures. Here's an example:
63+
- **Gestos**
64+
Framer Motion te permite crear animaciones basadas en los gestos del usuario. Aquí tienes un ejemplo:
6765

6866
```javascript
6967
import React from 'react';
@@ -75,17 +73,16 @@ const GestureComponent = () => {
7573
drag
7674
dragConstraints={{ left: -100, right: 100, top: -100, bottom: 100 }}
7775
>
78-
Drag me around
76+
Arrástrame por ahí
7977
</motion.div>
8078
);
8179
};
8280

8381
export default GestureComponent;
8482
```
8583

86-
87-
- **Layout Animations**
88-
Framer Motion makes it easy to animate layout changes. Here's an example:
84+
- **Animaciones de diseño**
85+
Framer Motion facilita la animación de cambios de diseño. A continuación, se muestra un ejemplo:
8986

9087
```javascript
9188
import React, { useState } from 'react';
@@ -96,7 +93,7 @@ const LayoutAnimationComponent = () => {
9693

9794
return (
9895
<motion.div layout onClick={() => setIsOpen(!isOpen)} style={{ background: 'lightblue', padding: '10px' }}>
99-
{isOpen ? 'Click to collapse' : 'Click to expand'}
96+
{isOpen ? 'Haga clic para contraer' : 'Haga clic para expandir'}
10097
</motion.div>
10198
);
10299
};
@@ -105,5 +102,5 @@ export default LayoutAnimationComponent;
105102
```
106103

107104
{% hint style="info" %}
108-
For more details and examples, check out the Framer Motion documentation.
109-
{% endhint %}
105+
Para obtener más detalles y ejemplos, consulte la documentación de Framer Motion.
106+
{% endhint %}

0 commit comments

Comments
 (0)