src/skrollr.stylesheets.js
function(input, output) {
		rxAnimation.lastIndex = 0;

		var animation;
		var rawKeyframes;
		var keyframe;
		var curAnimation;

		while((animation = rxAnimation.exec(input)) !== null) {
			//Grab the keyframes inside this animation.
			rxKeyframes.lastIndex = rxAnimation.lastIndex;
			rawKeyframes = rxKeyframes.exec(input);

			//Grab the single keyframes with their CSS properties.
			rxSingleKeyframe.lastIndex = 0;

			//Save the animation in an object using it's name as key.
			curAnimation = output[animation[1]] = {};

			while((keyframe = rxSingleKeyframe.exec(rawKeyframes[1])) !== null) {
				//Put all keyframes inside the animation using the keyframe (like botttom-top, or 100) as key
				//and the properties as value (just the raw string, newline stripped).
				curAnimation[keyframe[1]] = keyframe[2].replace(/[\n\r\t]/g, '');
			}
		}
	}
function(input, output) {
		rxAnimation.lastIndex = 0;

		var animation;
		var rawKeyframes;
		var keyframe;
		var curAnimation;

		while((animation = rxAnimation.exec(input)) !== null) {
			//Grab the keyframes inside this animation.
			rxKeyframes.lastIndex = rxAnimation.lastIndex;
			rawKeyframes = rxKeyframes.exec(input);

			//Grab the single keyframes with their CSS properties.
			rxSingleKeyframe.lastIndex = 0;

			//Save the animation in an object using it's name as key.
			curAnimation = output[animation[1]] = {};

			while((keyframe = rxSingleKeyframe.exec(rawKeyframes[1])) !== null) {
				//Put all keyframes inside the animation using the keyframe (like botttom-top, or 100) as key
				//and the properties as value (just the raw string, newline stripped).
				curAnimation[keyframe[1]] = keyframe[2].replace(/[\n\r\t]/g, '');
			}
		}
	}
function ( input , output ) { rxAnimation . lastIndex = 0 ; var animation ; var rawKeyframes ; var keyframe ; var curAnimation ; while ( ( animation = rxAnimation . exec ( input ) ) !== null ) { //Grab the keyframes inside this animation. rxKeyframes . lastIndex = rxAnimation . lastIndex ; rawKeyframes = rxKeyframes . exec ( input ) ; //Grab the single keyframes with their CSS properties. rxSingleKeyframe . lastIndex = 0 ; //Save the animation in an object using it's name as key. curAnimation = output [ animation [ 1 ] ] = { } ; while ( ( keyframe = rxSingleKeyframe . exec ( rawKeyframes [ 1 ] ) ) !== null ) { //Put all keyframes inside the animation using the keyframe (like botttom-top, or 100) as key //and the properties as value (just the raw string, newline stripped). curAnimation [ keyframe [ 1 ] ] = keyframe [ 2 ] . replace ( / [\n\r\t] / g , '' ) ; } } }
Finds animation declarations and puts them into the output map.
Finds animation declarations and puts them into the output map .