Skip to content

Instantly share code, notes, and snippets.

View bjszd's full-sized avatar

Björn Söderqvist bjszd

  • Tangerine Labs
  • Copenhagen
View GitHub Profile
@bjszd
bjszd / polyfill-data.ts
Created September 22, 2021 09:38
Example of webpack conditional import
import aear from './ar-AE.json';
import bhar from './ar-BH.json';
// eslint-disable-next-line no-undef
const market = process.env.MARKET;
let polyfillData: typeof aear;
if (market === 'ae/ar') {
polyfillData = aear;
@bjszd
bjszd / working-with-lottie-files.md
Last active December 8, 2023 17:42
Working with Lottie files

Working with Lottie files

Lottie is the file type of Bodymovin, a plugin for AfterEffects that can export an animation into a descriptive JSON format.

Why is it called Lottie files?

Lottie got its name from Charlotte ‘Lotte’ Reiniger, German film director and the foremost pioneer of silhouette animation.

Avoid lottie-web player