<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/sources/codrops/best-of/2021" -->

---
title: Best Codrops posts of 2021 | daily.dev
description: The most upvoted Codrops posts of 2021, curated by the daily.dev community.
canonical: https://daily.dev/sources/codrops/best-of/2021
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:url: https://daily.dev/sources/codrops/best-of/2021
og:type: website
og:site_name: daily.dev
og:title: Best Codrops posts of 2021 | daily.dev
og:description: The most upvoted Codrops posts of 2021, curated by the daily.dev community.
og:image: https://media.daily.dev/image/upload/s--VAY5ToZt--/f_auto/v1724209435/public/daily.dev%20-%20open%20graph
---

# Best of Codrops — 2021

1. 1  
[](/posts/trigonometry-in-css-and-javascript-introduction-to-trigonometry-1qwjweefh "Trigonometry in CSS and JavaScript: Introduction to Trigonometry")  
[![codrops's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/codrops)](/sources/[source]/best-of/[year])  
7m read time • Jun 01, 2021  
### Trigonometry in CSS and JavaScript: Introduction to Trigonometry  
Trigonometric functions allow us to calculate unknown values of a right-angled triangle from known parameters. Sass and JavaScript both include trigonometric functions, and we’ll look at some ways to use these in this article and the following ones. We’re using these in the clip-path property to determine the coordinates of the polygon points, similar to calculating the height of a tree.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/929600a7d1a8ac546caf0f03f4b6225f)  
17  
2
2. 2  
[](/posts/teleportation-transition-with-three-js-bmogiiqzf "Teleportation Transition with Three.js")  
[![codrops's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/codrops)](/sources/[source]/best-of/[year])  
1m read time • Dec 06, 2021  
### Teleportation Transition with Three.js  
This coding session was streamed live on December 5, 2021\. In this ALL YOUR HTML stream and coding session we’ll be creating a teleportation-like transition with Three.js using some quaternions, and fragment shaders. The original effect comes from Marseille 2021 by La Phase 5.

+4  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/3471ec9f4fd45c648734e950567b6718)  
15  
1
3. 3  
[](/posts/creating-3d-characters-in-three-js-mwsbhmdcz "Creating 3D Characters in Three.js")  
[![codrops's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/codrops)](/sources/[source]/best-of/[year])  
17m read time • Oct 04, 2021  
### Creating 3D Characters in Three.js  
Three.js is a JavaScript library for drawing in 3D with WebGL. It enables us to add 3D objects to a scene, and manipulate things like position and lighting. This article is for developers who are comfortable with JavaScript but relatively new to Three.js. Our goal is to walk through building a simple but effective 3D animated figure.

+3  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/20e7b453e50dfcc0c012e056cc8d0352)  
11  
1
4. 4  
[](/posts/magical-marbles-in-three-js-lpxqaeosx "Magical Marbles in Three.js")  
[![codrops's profile](https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/codrops)](/sources/[source]/best-of/[year])  
10m read time • Aug 02, 2021  
### Magical Marbles in Three.js  
In April 2019, Harry Alisavakis made a great write-up about the “magical marbles” effect he shared prior on Twitter. The purpose of this tutorial is to offer a more concrete look at how you could implement code for this in Three.js to run on the web. This tutorial assumes intermediate familiarity with three.js and GLSL.

+2  
![Post Cover image](https://media.daily.dev/image/upload/t_mobile_feed/v1/posts/ec40bb6e397431b2b736965ede806b71)  
11

[See all Codrops archives](/sources/codrops/best-of)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@graph":[{"@type":"CollectionPage","@id":"https://daily.dev/sources/codrops/best-of/2021#page","url":"https://daily.dev/sources/codrops/best-of/2021","name":"Best Codrops Posts of 2021","description":"The most upvoted Codrops posts of 2021, curated by the daily.dev community.","isPartOf":{"@type":"WebSite","url":"https://daily.dev"}},{"@type":"ItemList","@id":"https://daily.dev/sources/codrops/best-of/2021#items","numberOfItems":4,"itemListElement":[{"@type":"ListItem","position":1,"url":"https://daily.dev/posts/trigonometry-in-css-and-javascript-introduction-to-trigonometry-1qwjweefh","name":"Trigonometry in CSS and JavaScript: Introduction to Trigonometry"},{"@type":"ListItem","position":2,"url":"https://daily.dev/posts/teleportation-transition-with-three-js-bmogiiqzf","name":"Teleportation Transition with Three.js"},{"@type":"ListItem","position":3,"url":"https://daily.dev/posts/creating-3d-characters-in-three-js-mwsbhmdcz","name":"Creating 3D Characters in Three.js"},{"@type":"ListItem","position":4,"url":"https://daily.dev/posts/magical-marbles-in-three-js-lpxqaeosx","name":"Magical Marbles in Three.js"}]},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sources","item":"https://daily.dev/sources"},{"@type":"ListItem","position":3,"name":"Codrops","item":"https://daily.dev/sources/codrops"},{"@type":"ListItem","position":4,"name":"Best of","item":"https://daily.dev/sources/codrops/best-of"},{"@type":"ListItem","position":5,"name":"2021"}]}]}
```

