This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getAverageColourAsRGB (img) { | |
| var canvas = document.createElement('canvas'), | |
| context = canvas.getContext && canvas.getContext('2d'), | |
| rgb = {r:102,g:102,b:102}, // Set a base colour as a fallback for non-compliant browsers | |
| pixelInterval = 5, // Rather than inspect every single pixel in the image inspect every 5th pixel | |
| count = 0, | |
| i = -4, | |
| data, length; | |
| // return the base colour for non-compliant browsers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photo-sphere-viewer@3.2.3/dist/photo-sphere-viewer.min.css"> | |
| <style> | |
| html { height: 100%; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/photo-sphere-viewer@3.2.3/dist/photo-sphere-viewer.min.css"> | |
| <style> | |
| html { height: 100%; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| A full list of simple easing equations inspired by GIST from greweb - https://gist.github.com/gre/1650294 | |
| Equations source - http://gsgd.co.uk/sandbox/jquery/easing/ | |
| */ | |
| { | |
| linear: function(t) { | |
| return t | |
| }, | |
| inQuad: function(t) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "scripts": { | |
| "postcss": "postcss src/css/index.css -o src/css/styles.css -w", | |
| "build:css": "postcss -e production src/css/index.css -o dist/css/styles.css", | |
| ... | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // https://grafpaper.glitch.me/ | |
| var pixel = { | |
| size: 15, | |
| color: 'rgba(0,0,0,.2)', | |
| stroke: 'rgba(0,0,255,.1)', | |
| }; | |
| var isDrawing = false; |
- https://github.com/tkh44/emotion
- https://medium.com/@tkh44/emotion-ad1c45c6d28b
- http://styletron.js.org/
- https://ryantsao.com/blog/virtual-css-with-styletron
- https://github.com/cssinjs
- http://cssinjs.org/
- https://github.com/MicheleBertoli/css-in-js
- https://github.com/dexteryy/spellbook-of-modern-webdev#next-generation-css
- https://m.alphasights.com/css-evolution-from-css-sass-bem-css-modules-to-styled-components-d4c1da3a659b
- https://medium.com/fed-or-dead/battling-bem-5-common-problems-and-how-to-avoid-them-5bbd23dee319

