Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <link rel="preconnect" href="">
<link rel="preconnect" href="" crossorigin>
<link href="" rel="stylesheet">

<div class="title">Example BlurPlugin for GSAP 3</div>
<!-- <div id="output">Click for current blur: <span id="currentBlur">0</span></div> -->

<link href='//,400' rel='stylesheet' type='text/css'>

<a href=""><img class="gsap-3-logo" src="" width="150" /></a>


                body {
  position: relative;
  background-color: black;
  color: white;
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: 17px;
  text-align: center;
  height: 100vh;
  overflow: hidden;

.title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  font-size: 80px;
  will-change: filter;
  div {
    display: flex !important;

#output {
  position: fixed;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-size: 21px;
  pointer-events: none;

.gsap-3-logo {
  width: 200px;
  position: fixed;
  bottom: 15px;
  right: 15px;



import {Pane} from "";
import * as EssentialsPlugin from ""

* set tweakpane
const PARAMS = {
  scale: 1.2,
  duration: 0.55,
  cubicBezier: true,
  ease: 'Power2.easeOut'

const pane = new Pane()

pane.addInput(PARAMS, 'scale', {
  min: 1, max: 10.0,

pane.addInput(PARAMS, 'duration', {
  min: 0.1, max: 3.0,

pane.addInput(PARAMS, 'cubicBezier')
const cubicBezier = pane.addBlade({
  view: 'cubicbezier',
  value: [0.2, 1.0, 0.25, 1.0],

  expanded: true,
  label: 'cubicBezier',
  picker: 'inline',

let ceVal = CustomEase.create("CustomEase", 
      cubicBezier.value.comps_[0] + ',' +
      cubicBezier.value.comps_[1] + ',' +
      cubicBezier.value.comps_[2] + ',' +
      cubicBezier.value.comps_[3] + ','

pane.addInput(PARAMS, 'ease', {
  options: {
    'Strong.easeInOut': 'Strong.easeInOut',
    'Linear.easeNone': 'Linear.easeNone',
    'Power0.easeIn': 'Power0.easeIn',
    'Power1.easeIn': 'Power1.easeIn',
    'Power2.easeIn': 'Power2.easeIn',
    'Power3.easeIn': 'Power3.easeIn',
    'Power4.easeIn': 'Power4.easeIn',
    'Quad.easeIn': 'Quad.easeIn',
    'Cubic.easeIn': 'Cubic.easeIn',
    'Quart.easeIn': 'Quart.easeIn',
    'Quint.easeIn': 'Quint.easeIn',
    'Elastic.easeIn': 'Elastic.easeIn',
    'Back.easeIn': 'Back.easeIn',
    'Bounce.easeIn': 'Bounce.easeIn',
    'SlowMo.easeIn': 'SlowMo.easeIn',
    'SteppedEase.easeIn': 'SteppedEase.easeOut',
    'Circ.easeIn': 'Circ.easeIn',
    'Expo.easeIn': 'Expo.easeIn',
    'Sine.easeIn': 'Sine.easeIn',
    'Power0.easeOut': 'Power0.easeOut',
    'Power1.easeOut': 'Power1.easeOut',
    'Power2.easeOut': 'Power2.easeOut',
    'Power3.easeOut': 'Power3.easeOut',
    'Power4.easeOut': 'Power4.easeOut',
    'Quad.easeOut': 'Quad.easeOut',
    'Cubic.easeOut': 'Cubic.easeOut',
    'Quart.easeOut': 'Quart.easeOut',
    'Quint.easeOut': 'Quint.easeOut',
    'Elastic.easeOut': 'Elastic.easeOut',
    'Back.easeOut': 'Back.easeOut',
    'Bounce.easeOut': 'Bounce.easeOut',
    'SlowMo.easeOut': 'SlowMo.easeOut',
    'SteppedEase.easeOut': 'SteppedEase.easeOut',
    'Circ.easeOut': 'Circ.easeOut',
    'Expo.easeOut': 'Expo.easeOut',
    'Sine.easeOut': 'Sine.easeOut',
    'Power0.easeInOut': 'Power0.easeInOut',
    'Power1.easeInOut': 'Power1.easeInOut',
    'Power2.easeInOut': 'Power2.easeInOut',
    'Power3.easeInOut': 'Power3.easeInOut',
    'Power4.easeInOut': 'Power4.easeInOut',
    'Quad.easeInOut': 'Quad.easeInOut',
    'Cubic.easeInOut': 'Cubic.easeInOut',
    'Quart.easeInOut': 'Quart.easeInOut',
    'Quint.easeInOut': 'Quint.easeInOut',
    'Elastic.easeInOut': 'Elastic.easeInOut',
    'Back.easeInOut': 'Back.easeInOut',
    'Bounce.easeInOut': 'Bounce.easeInOut',
    'SlowMo.easeInOut': 'SlowMo.easeInOut',
    'SteppedEase.easeInOut': 'SteppedEase.easeInOut',
    'Circ.easeInOut': 'Circ.easeInOut',
    'Expo.easeInOut': 'Expo.easeInOut',
    'Sine.easeInOut': 'Sine.easeInOut'

const btn = pane.addButton({
  title: 'Click to Change Settings'

btn.on('click', reset)

//this is just an example plugin that allows us to animate a "blur" property like, {blur:10}) and it'll feed that value to this plugin which will do all the necessary calculations to add/update a blur() value in the CSS "filter" property (in browsers that support it). We wrap it in an iife just so that we can declare some local variables in a private scope at the top.
const blurProperty = gsap.utils.checkPrefix("filter"),
      blurExp = /blur\((.+)?px\)/,
      getBlurMatch = target => (gsap.getProperty(target, blurProperty) || "").match(blurExp) || [];

  name: "blur",
  get(target) {
    return +(getBlurMatch(target)[1]) || 0;
  init(target, endValue) {
    let data = this,
        filter = gsap.getProperty(target, blurProperty),
        endBlur = "blur(" + endValue + "px)",
        match = getBlurMatch(target)[0],
    if (filter === "none") {
      filter = "";
    if (match) {
      index = filter.indexOf(match);
      endValue = filter.substr(0, index) + endBlur + filter.substr(index + match.length);
    } else {
      endValue = filter + endBlur;
      filter += filter ? " blur(0px)" : "blur(0px)";
    } = target; 
    data.interp = gsap.utils.interpolate(filter, endValue); 
  render(progress, data) {[blurProperty] = data.interp(progress);

const tl = new gsap.timeline()
// tl.add('anime')
const mySplitText = new SplitText(".title", { type: "words,chars" }),
      chars = mySplitText.chars; //an array of all the divs that wrap each character

//from now on, we can animate "blur" as a number! (Well, in browsers that support filter)
function reset() {
  // gsap.killTweensOf(chars)
  if (tl) tl.clear()
  gsap.set(chars, { clearProps: "all" });
  ceVal = CustomEase.create('CustomEase', 
      cubicBezier.value.comps_[0] + ',' +
      cubicBezier.value.comps_[1] + ',' +
      cubicBezier.value.comps_[2] + ',' +
      cubicBezier.value.comps_[3] + ','
  const ease = PARAMS.cubicBezier ? ceVal : PARAMS.ease, {
    duration: PARAMS.duration,
    autoAlpha: 0,
    scale: PARAMS.scale,
    blur: 8,
    ease: ease,
    repeat: 15,
    yoyo: true,
    repeatDelay: 1,
    stagger: { 
    each: 0.05,
    from: "random",