Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

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

Packages

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.

Behavior

Save Automatically?

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.

HTML

              
                .text
	img(src="https://github.com/karolsw3/gradientify/raw/master/logo.png" height="40")
	p Create amazing, animated gradients in seconds.
	p
		a(target="_blank" href="https://github.com/karolsw3/gradientify") Check it out on GitHub
.card
	.gradient.gradient1
.card
	.gradient.gradient2
.card
	.gradient.gradient3
              
            
!

CSS

              
                html
	margin 30px
	background #efeeee
	font-family Helvetica Neue, sans-serif
	a
		text-decoration none
		color dodgerblue
.text
	margin-left 6px
.card
	display inline-block
	background #efeeee
	padding 11px
	margin-right 10px
	margin-bottom 10px
	border-radius 5px
	box-shadow -6px -6px 16px #fff, 6px 6px 16px #d1cdc7
	border 1px solid rgba(255, 255, 255, .2)
.gradient
	display inline-block
	width 300px
	border-radius 3px
	overflow hidden
	height 200px
	margin 0
	box-shadow inset -6px -6px 16px rgba(0, 0, 0, .02)
              
            
!

JS

              
                let gradient1 = new Gradientify(
  '.gradient1',
  [
    "linear-gradient(60deg, rgb(255, 0, 0), rgb(0, 0, 255))", // Array of CSS gradients
    "linear-gradient(10deg, rgb(25, 123, 23), #ff22af)",
    "radial-gradient(rgb(25, 123, 223), red)"
  ],
  3000 // Interval in miliseconds
)

let gradient2 = new Gradientify(
  '.gradient2',
  [
    "linear-gradient(60deg, rgb(15, 34, 103), rgb(89, 86, 155))", // Array of CSS gradients
    "linear-gradient(70deg, rgb(134, 123, 23), #ff22af)",
		"linear-gradient(80deg, rgb(11, 67, 23), #a542ff)",
		"linear-gradient(90deg, rgb(25, 45, 87), #4f72cf)",
  ],
  3000 // Interval in miliseconds
)

let gradient3 = new Gradientify(
  '.gradient3',
  [
    "linear-gradient(rgb(75, 34, 183), rgb(129, 86, 165))", // Array of CSS gradients
    "linear-gradient(rgb(25, 96, 123), rgb(19, 216, 185))",
		"linear-gradient(rgb(111, 87, 123), #f542ff)",
		"linear-gradient(rgb(125, 145, 87), #ff72ff)",
  ],
  3000 // Interval in miliseconds
)

              
            
!
999px

Console