npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

videotrans

v0.0.7

Published

Video transitioning jQuery plugin which provides a system for implementing transitioning videos overlayed with timed text effects. Can be used with single video if only captions are required or multiple videos if video transitions are required.

Downloads

2

Readme

VideoTrans

Video transitioning jQuery plugin which provides a system for implementing transitioning videos overlayed with timed text effects. Can be used with single video if only captions are required or multiple videos if video transitions are required.

Email questions to [email protected]

Demo page: http://leonidaskyrkos.github.io/

Uses:

  • HTML5
  • CSS3 transitions
  • ES6 transpiled with babel

Supported browsers:

  • Chrome
  • Safari
  • Firefox
  • Vivaldi
  • Edge
  • IE11
  • IE10
  • IE9
  • iOS and other no autoplay devices supported via fallback to CSS image transition

If you want fallback support for non-autoplay browsers and devices then please include the relevant Modernizr checks found in the link below

http://modernizr.com/download?-video-videoautoplay


##Markup for one video + captions

<div class="video-trans__outerwrap" data-js="video">
	<div class="video-trans__videos">
		<div class="video-trans__wrap">
			<video class="video-trans__video">
				<source src="/media/video/test-video.mp4" type="video/mp4">
			</video>
			<span class="video-trans__caption inactive" data-js="caption" data-start="0.5" data-end="1.5">This is<br><span class="bold">example text</span></span>
			<span class="video-trans__caption inactive" data-js="caption" data-start="2" data-end="3">This is<br><span class="bold">example text</span></span>
			<span class="video-trans__caption inactive" data-js="caption" data-start="3.5" data-end="4.5">This is<br><span class="bold">example text</span></span>
			<span class="video-trans__caption inactive" data-js="caption" data-start="5" data-end="6">This is<br><span class="bold">example text</span></span>
			<span class="video-trans__caption inactive" data-js="caption" data-start="6.5" data-end="7.5">This is<br><span class="bold">example text</span></span>
		</div>
	</div>
</div>

##Markup for multiple videos + captions

<div class="video-trans__outerwrap" data-js="video">
	<ol class="video-trans__videos">
		<li class="video-trans__wrap">
			<video class="video-trans__video">
				<source src="/media/video/test-video.mp4" type="video/mp4">
			</video>
			<span class="video-trans__fallback playing" data-duration="2" data-js="fallback" style="background-image: url('/media/images/fallback.jpg')"></span>
			<span class="video-trans__caption inactive" data-js="caption" data-start="1.5" data-end="4.5">This is<br><span class="bold">example text</span></span>
		</li>
		<li class="video-trans__wrap">
			<video class="video-trans__video">
				<source src="/media/video/test-video.mp4" type="video/mp4">
			</video>
			<span class="video-trans__fallback" data-duration="2" data-js="fallback" style="background-image: url('/media/images/fallback2.jpg')"></span>
			<span class="video-trans__caption inactive" data-js="caption" data-start="1.5" data-end="4.5">This is<br><span class="bold">example text 2</span></span>
		</li>
		<li class="video-trans__wrap">
			<video class="video-trans__video">
				<source src="/media/video/test-video.mp4" type="video/mp4">
			</video>
			<span class="video-trans__fallback" data-duration="2" data-js="fallback" style="background-image: url('/media/images/fallback3.jpg')"></span>
			<span class="video-trans__caption inactive" data-js="caption" data-start="1.5" data-end="4.5">This is<br><span class="bold">example text3</span></span>
		</li>
		<li class="video-trans__wrap">
			<video class="video-trans__video">
				<source src="/media/video/test-video.mp4" type="video/mp4">
			</video>
			<span class="video-trans__fallback" data-duration="2" data-js="fallback" style="background-image: url('/media/images/fallback4.jpg')"></span>
			<span class="video-trans__caption" data-js="caption" data-start="1.5" data-end="4.5">This is<br><span class="bold">example text 3</span></span>
		</li>
		<li class="video-trans__wrap">
			<video class="video-trans__video">
				<source src="/media/video/test-video.mp4" type="video/mp4">
			</video>
			<span class="video-trans__fallback" data-duration="2" data-js="fallback" style="background-image: url('/media/images/fallback5.jpg')"></span>
			<span class="video-trans__caption inactive" data-js="caption" data-start="1.5" data-end="4.5">This is<br><span class="bold">example text 4</span></span>

		</li>
		<li class="video-trans__wrap">
			<video class="video-trans__video">
				<source src="/media/video/test-video.mp4" type="video/mp4">
			</video>
			<span class="video-trans__fallback" data-duration="2" data-js="fallback" style="background-image: url('/media/images/fallback6.jpg')"></span>
			<span class="video-trans__caption inactive" data-js="caption" data-start="1.5" data-end="4.5">This is<br><span class="bold">example text 5</span></span>
		</li>
	</ol>
</div>

##Init function:

$('[data-js="video-trans"]').videoTransitions();

##Default settings (param 2)

let settings = {
	transitionType: 'default', // default = fade over
	looping: true, // true for looping
	transTime: 3, // transition duration
	loopText: false, // include the captions in the loop
	startImage: false, // Initial image (displayed while loading)
	endText: false, // text to remain when looping video
	endImage: false, // final image if no looping video
	muted: true
}

#####Passing your own settings

$('[data-js="video-trans"]').videoTransitions({
	transitionType: 'spin',
	looping: true,
	startImage: '/media/images/start.png',
	customTransitions: {
		example: {
			classOut: 'exampleOut',
			classPlaying: 'playingExample'
			classDefault: 'example',
			easing: 'ease-in'
		}
	}
})

L Kyrkos © Redsnapper 2016