Skip to content

🎥 Make videos programmatically with React

update interpolate blog doc

Shankhadeep Dey8ac2f5b20136
diff --git a/packages/docs/blog/2021-04-09-remotion-2-0.md b/packages/docs/blog/2021-04-09-remotion-2-0.md
index ba7727e1c4..d8d684e5e0 100644
--- a/packages/docs/blog/2021-04-09-remotion-2-0.md
+++ b/packages/docs/blog/2021-04-09-remotion-2-0.md
@@ -65,7 +65,13 @@ If you for some reason need to go back to the previous behavior, you may [overri
## Resizable panels
## interpolate()
-now supports number array (array length >= 2) in input and outpur range. Make sure the length or input and output array length is same.
+`interpolate()` in Remotion 2.0 supports number array (array length >= 2) in input and outpur range. Make sure the length or input and output array length is same.
+
+From Remotion 2.0 onwards you can do something like this.
+
+```tsx
+const opacity = interpolate(input, [0, 10, 20], [0, 0.7, 1]) //0.7
+```
## 174 tests added
on remotion 1.5.4 we had total 43 tests including core (14 tests), renderer (1 tests), root (3 tests) and eslint-plugin (25 tests). In remotion 2.0 we added 174 more tests to make our development faster it now contains a total of 217 tests including core (147 tests), eslint-plugin (25 tests), renderer (31 tests) and root (14 tests).