Skip to content

Instantly share code, notes, and snippets.

View szympajka's full-sized avatar

Szymon Pajka szympajka

View GitHub Profile
@szympajka
szympajka / index.html
Created March 9, 2017 00:19 — forked from anonymous/index.html
Turn waves on/off without javascript
<div class="music">
<label for="play"></label>
<input id="play" type="checkbox" />
<div class="waves">
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
<div class="wave"></div>
</div>
@szympajka
szympajka / snabbdom-input-test.js
Created February 4, 2019 21:40
Snabbdom input test
// ####### Declarations ##########
import h from '/vendors/snabbdom/h.js'
import { defaultsDeep, merge } from '/vendors/lodash/lodash.js'
// ####### Defaults ##########
const defaultParams = {
name: '',
value: '',
label: '',
placeholder: '',
import { createComponent, styled } from 'snabbdom-react-components'
const Box = styled.div``
const Label = styled.label``
const InputField = styled.input`
${(props, data) => {
data.attrs.type = 'text'
}}
`