Skip to content

Instantly share code, notes, and snippets.

View levinmejia's full-sized avatar

Levin Mejia levinmejia

View GitHub Profile
ul.feature li > * {
pointer-events: none;
-webkit-transform: scale(.5);
-webkit-transform-origin: 0 0;
transform: scale(.5);
transform-origin: 0 0;
transition: .4s cubic-bezier(.3,0,0,1.2);
}
p {
padding: 0 16px 15px
box-shadow: 0 1px 3px rgba(0,0,0,.4);
background: rgba(255,255,255,.97);
}
-webkit-transform: scale(.5);
transform: scale(.5);
<script src="http://uilang.com/lib/production/uilang.js"></script>
<code>
clicking on "ul.feature li, ul.feature li img" removes class "open" on "ul.feature li"
clicking on "ul.feature li" adds class "open" on "target"
</code>