• Welcome to Trigons

    Premium JavaScript for colorful, animated abstract graphics

  • Creative & Modern

    With 30 built-in animation effects

  • Flexible & Powerful

    Trigons is easy to set up and customize

Explore More

What You're Getting

This script uses SVG (Scalable Vector Graphics) and HTML5 features supported in all modern browsers.

There are no raster assets such as JPG or PNG (except after PNG export) — only vectors, for a crisp look on every device, including Retina displays.

  • Animated and Static

    A signature feature of Trigons is that graphics can be animated with 30 built-in effects — or kept static.

  • Responsive

    A Trigons SVG can be responsive: set the responsive option to true.

  • All Modern Browsers

    Trigons are currently supported by Firefox, Safari, Chrome, Opera, Brave, Microsoft Edge, iOS and Android.

  • Retina Perfect

    Trigons is vector-based, so it stays sharp on high-resolution displays.

  • Any Colors, Any Sizes

    Trigons graphics can use any color palette for the triangles and scale to any size.

  • Solid colors or gradients

    Use flat palettes, or generate a shaded gradient or a pseudo-3D look.


  • Built-in color palette generator

    Easily build a palette from one, two, or three seed colors.

  • As "background-image"

    A Trigons SVG can be applied as a CSS background-image on any element.

  • Convert to PNG

    Export the Trigons SVG to PNG in one step.


  • Click, Hover and "Viewport" events

    Start animation on click or hover, or when the element containing Trigons enters the viewport of your browser.

  • Separate "In" and "Out" Animations

    "In" and "Out" passes can each use different effects, delays, durations, and easing.

  • "Force" Animation Methods

    JavaScript APIs can trigger animations immediately, with no user event required.


  • Easy Integration

    Two ways to create Trigons: JavaScript or HTML5 data attributes.

  • Flexible and Powerful Settings

    User-friendly settings for the look and behavior of each Trigons instance — or all of them at once.

  • Free Support

    Extensive documentation and free support are also available.

How To Use

Upload the scripts to your server, link them in your HTML, then initialize Trigons with JavaScript or HTML5 data attributes.

Via JavaScript

d3.selectAll('your_id_or_your_class')
  .trigons({
	width: 1024,
	height: 768,
	... other options and callbacks ...
  })
  .trigonsAnimInit({
	animIn: 'effect1-top',
	durationIn: 2000,
	easeIn : 'cubic-out',
	... other options and callbacks ...
  });

Via HTML

<div class="trigons"
	data-create =
	  '{"width": "900",
	  "height": "300",
	  ... other options ...,
	  "responsive": "true"}'
	data-animate =
	  '{"animOrder": "in-out",
	  "animIn": "effect7-left",
	  ... other options ...,
	  "viewportShift": "one-half"}'>
</div>

Via JavaScript, the methods .trigonsAnimNext(), .trigonsAnimIn(), .trigonsAnimOut(), .trigonsPng() and .trigonsBackground() are also available.

Full documentation for every option and method ships with the download after purchase.

Note: Trigons is not a slider — it renders and animates abstract SVG graphics. You can drop the output into any slider as plain HTML without Trigons’ own animation. To use the built-in animation effects inside a slider, you need a slider API with hooks such as beforeChangeSlide, afterChangeSlide, getUpcomingSlide, getOutgoingSlide, etc., or you must extend the slider’s JavaScript yourself to call Trigons methods.

On this demo, the intro above uses jquery.superslides.js with extra hooks to drive the animations you see.

Frequently asked questions

Review these answers before you buy.

Is this a WordPress plugin?

No, this is a JavaScript item coded as plugin for Data-Driven Documents (d3.js) script by Mike Bostock.

Any plans for a WordPress plugin?

Not at the moment. You can ask theme authors to bundle Trigons with their products.

What are the dependencies?

Only d3.js is required. jQuery and other libraries are optional — unless you need PNG export, which adds the Canvg stack bundled with the download.

Can I use your script in multiple websites with one license?

No, you need to buy one license for each website. More info about the licenses is here

Do you provide any support?

Yes. After purchase, use the contact form on my CodeCanyon profile. Free support does not cover custom work or integration with third-party scripts or plugins.

What is in the download?

Minified and source files
Animation reference
Documentation and license information

May I resell your script bundled with my own product (template, WordPress theme, etc.)?

Yes, but you need the CodeCanyon Extended License. More info about the licenses is here

Can I run multiple instances of Trigons in one page?

Yes. Target a class or ID, set the data attributes, or call .trigons() as shown in the “How To Use” section.

Still have questions?

Contact Me

Ready for the action?

Purchase Now