Skip to content

Instantly share code, notes, and snippets.

@hogashi
Last active Aug 23, 2018
Embed
What would you like to do?
藁半紙みたいな色ムラ出すやつ
document.body.insertAdjacentHTML('afterbegin',
[
'<div style="',
'position: fixed;',
'top: 10%;',
'left: 10%;',
'width: 80%;',
'height: 80%;',
'margin: 0;',
'padding: 0;',
'opacity: 0.3;',
'z-index: 9999;',
'background-image: linear-gradient(120deg, #faeb88, #f6f1d3, #faeb88, #f6f1d3, #faeb88, #f6f1d3, #faeb88, #f6f1d3, #faeb88, #f6f1d3, #faeb88, #f6f1d3);',
'"></div>'
].join('')
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment