Skip to content

Instantly share code, notes, and snippets.

View forceuser's full-sized avatar
🇺🇦
Stand with Ukraine! 💙 💛

Vitalii Dub forceuser

🇺🇦
Stand with Ukraine! 💙 💛
  • monobank
  • Dnipro, Ukraine
View GitHub Profile
<h3>box-shadow animations using currentColor</h3>
<i>(?) hover mouse over the block for 1 second</i>
<br/><br/>
<div class="block transitioned">Transitioned <span style="color: green;">(Expexted)</span></div>
<div class="block animated">Animated (Wrong)</div>
<hr/>
more tests...
<br/><br/>
<div class="block animated2">Animated2</div>
<div class="block animated3" type="button">Animated3</div>
@forceuser
forceuser / rotateIMG.js
Last active August 29, 2015 14:23
Rotate image with javascript using canvas, and resize canvas to match image size
// el - dom img element with specified src attribute
// angle - angle to rotate the image (in degrees)
function rotateImg(el,angle){
var img = document.createElement("img");
img.onload = function(){
var w = img.width;
var h = img.height;
var a = angle*(Math.PI/180);
@forceuser
forceuser / ipin.py
Last active August 29, 2015 14:06 — forked from akfreas/ipin.py
#---
# iPIN - iPhone PNG Images Normalizer v1.0
# Copyright (C) 2007, 2012
#
# Author:
# Alexander Freas
# www.sashimiblade.com
# alex@sashimiblade.com
#
#