Permalink
Browse files

moving dependencies to use bower

  • Loading branch information...
chrisantonellis committed May 3, 2016
1 parent 555b86b commit 5735247d62596c76db38946ebe56022aa42298bb
Showing with 101 additions and 1 deletion.
  1. +41 −0 .todo.txt
  2. +35 −0 bower.json
  3. +25 −1 src/js/freezeframe.js
View
@@ -0,0 +1,41 @@
+
+determine browser support for html5 canvas features:
+* [ canvas ].getContext
+* [ canvas ].drawimage
+
+determine browser support for jquery functions:
+* .hasClass
+* .siblings
+* .addClass
+* .removeClass
+* .attr
+* .mouseenter = .on(mouseenter)
+* .mouseleave
+* .click
+* .insertbefore
+* .add
+* .wrapall
+* .on
+* .not
+
+IE9 = add this tag so canvas stuff works
+
+cut the mustard
+http://responsivenews.co.uk/post/18948466399/cutting-the-mustard
+
+make generic private trigger and release functions
+finish default state variable for paused or playinghack
+
+add class to image css to support image ready / active
+hide gif when canvas is active
+
+write function to test for features needed, write failure to console
+if unsupported, attach simple image replacement
+fallback image needed
+
+test compatibility with browserstack using feature test function
+
+make warn method public
+
+pass references around in a cleaner way
+remove jquery dependency
View
@@ -0,0 +1,35 @@
+{
+ "name": "freezeframe.js",
+ "homepage": "https://github.com/Ctrl-Freaks/freezeframe.js",
+ "authors": [
+ "Christopher Antonellis <christopher.antonellis@gmail.com>"
+ ],
+ "description": "Pauses animated .gifs and enables them to animate on mouse event, touch event, or with trigger / release functions.",
+ "main": "build/js/freezeframe.js",
+ "main": "build/css/freezeframe_styles.css",
+ "moduleType": [
+ "globals"
+ ],
+ "keywords": [
+ ".gif",
+ "pause",
+ "freeze"
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "jquery": "^2.2.3",
+ "imagesloaded-packaged": "^3.1.4"
+ },
+ "ignore": [
+ "**/.*",
+ "node_modules",
+ "bower_components",
+ "examples",
+ "package.json",
+ "gulpfile.js"
+ ],
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/Ctrl-Freaks/freezeframe.js"
+ }
+}
View
@@ -1,6 +1,30 @@
+// determine browser support for html5 canvas features:
+// [ canvas ].getContext
+// [ canvas ].drawimage
+
+// determine browser support for jquery functions:
+// .hasClass
+// .siblings
+// .addClass
+// .removeClass
+// .attr
+// .mouseenter = .on(mouseenter)
+// .mouseleave
+// .click
+// .insertbefore
+// .add
+// .wrapall
+// .on
+// .not
+
+// IE9 = add this tag so canvas stuff works
+
+// cut the mustard
+// http://responsivenews.co.uk/post/18948466399/cutting-the-mustard
+
// make generic private trigger and release functions
-// finish default state variable for paused or playing
+// finish default state variable for paused or playinghack
//
// add class to image css to support image ready / active
// hide gif when canvas is active

0 comments on commit 5735247

Please sign in to comment.