Skip to content

Instantly share code, notes, and snippets.

Avatar

Levin Mejia levinmejia

View GitHub Profile
View uilang-js.html
<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>
View uilang.html
<script src="http://uilang.com/lib/production/uilang.js"></script>
View ul-gallery-html.html
View transform.css
-webkit-transform: scale(.5);
transform: scale(.5);
View caption-styles.css
p {
padding: 0 16px 15px
box-shadow: 0 1px 3px rgba(0,0,0,.4);
background: rgba(255,255,255,.97);
}
View transform-img.css
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);
}
View open-class.css
ul.feature .open > * {
pointer-events: auto;
-webkit-transform: translate(-25%, -25%);
transform: translate(-25%, -25%);
}
ul.feature .open img {
z-index: 3;
}
ul.feature .open p {
z-index: 2;
View code-apply-open-class.html
<code>
clicking on "ul.feature li" adds class "open" on "target"
</code>
View remove-open-class.html
<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>
View facebook-icon-svg.html
<!-- Facebook Filled icon by Icons8 -->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" x="0px" y="0px" width="50" height="50" viewBox="0 0 50 50" style="null" class="icon icons8-Facebook-Filled" > <path d="M40,0H10C4.486,0,0,4.486,0,10v30c0,5.514,4.486,10,10,10h30c5.514,0,10-4.486,10-10V10C50,4.486,45.514,0,40,0z M39,17h-3 c-2.145,0-3,0.504-3,2v3h6l-1,6h-5v20h-7V28h-3v-6h3v-3c0-4.677,1.581-8,7-8c2.902,0,6,1,6,1V17z"></path></svg>
You can’t perform that action at this time.