I hereby claim:
- I am obelmont on github.
- I am obelmont (https://keybase.io/obelmont) on keybase.
- I have a public key ASBS-AzJdrZV-8wAMhbIPJCsT-Tko2vxQHtDO3qVQWO8kgo
To claim this, I am signing this object:
| function maxWords(words, chars = 25, append){ | |
| return `${words.split(' ').slice(0, chars).join(' ')}${append || ''}` | |
| } |
| function wrap(element, wrapper, classes = []) { | |
| element.parentNode.insertBefore(wrapper, element); | |
| wrapper.classList.add(...classes); | |
| wrapper.appendChild(element); | |
| } | |
| // example usage | |
| wrap(document.querySelector('#wrap'), document.createElement('div'), ['class1', 'class2']); |
| References | |
| // Yes | |
| https://www.stinkstudios.com (animations / image placeholders / page transitions) | |
| https://martinwecke.de (navigation) | |
| http://www.monomono.studio/ (interactivity) | |
| https://jenniferheintz.com/ (interactvity not the scrolljacking) | |
| http://tennentbrown.co.nz/projects/spirit/aro-ha-retreat (Typework) | |
| https://jonny.wtf/ (physics - probably matter.js) |
I hereby claim:
To claim this, I am signing this object:
| //Add image ratios to the image array returned through ACF | |
| function imageRatio( $value, $post_id, $field){ | |
| //Only alter array | |
| if ($field['return_format'] === 'array') { | |
| $id = $value['id']; | |
| if( $sizes = get_intermediate_image_sizes() ) { | |