npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

svg-playhead

3.0.0

@juliangruber

npmHomeRepoSnykSocket
Downloads:9
$ npm install svg-playhead
DailyWeeklyMonthlyYearly

svg-playhead

Render a playhead element as svg.

screenshot

Usage

const Playhead = require('svg-playhead')
const html = require('bel')

const playhead = Playhead()

const el = html`
  <svg heigth=600 width=100>
    <rect height=100% width=100% fill=gray />
    <g transform="translate(40, 0)">
      ${playhead.render({ height: 600, width: 10 })}
    </g>
  </svg>
`

document.body.appendChild(el)

License

MIT