Skip to content

cagosto/ellipse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ellipse-copy

ES6 Class for handling ellipse's in copy

Whats This?

This ES6 class will let you ellipse copy for different breakpoints.

Demo

Check out the codepen for a example.

Config

Config requires an Array of objects that pass width and count as props. Width is the max value for the count that is passed.

new Ellipse([
  {
    width: 768,
    count : 50
  },
  {
    width: 980,
    count: 100
  },
  {
    width: 1280,
    count: 150
  }
])

Installation

npm i ellipse-copy

import Ellipse from 'ellipse-copy'

About

ES6 Class for handling ellipse's in copy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published