Skip to content

Instantly share code, notes, and snippets.

View choose0or7's full-sized avatar

Yu choose0or7

View GitHub Profile
@choose0or7
choose0or7 / card-hover-interactions.markdown
Created August 14, 2020 12:20
Card Hover Interactions

Card Hover Interactions

Hacking together a solution to show part of an element in a card as a default state, lining up the element headline across each card and then animating the element to the center of its parent element

A Pen by Ryan Mulligan on CodePen.

License.

@choose0or7
choose0or7 / index.pug
Created August 10, 2020 19:54
UI Cards
doctype html
html.no-js(lang="en-GB")
head
meta(charset="utf-8")
meta(http-equiv="x-ua-compatible", content="ie=edge")
meta(name="description", content="An example pen showing how a basic CSS Grid container can create a nice, responsive card layout.")
meta(name="viewport", content="width=device-width, initial-scale=1, shrink-to-fit=no")
title CSS Grid Cards
.grid
@choose0or7
choose0or7 / index.pug
Created August 10, 2020 19:11
Neu Times !
mixin strip(x)
.strip
- let i = -1;
while i++ < x
.number= i
.clock
.hr
+strip(2)
+strip(9)
@choose0or7
choose0or7 / Charset.cls
Last active June 5, 2018 19:03 — forked from nxtr/Charset.cls
Salesforce Force.com Apex: encode and decode string to / from binary characters in charset
public abstract class Charset {
/**
* Convenience method that encodes a string into bytes in charset.
* <p>
* @param input string of Unicode characters
* @param charset name according to http://www.iana.org/assignments/character-sets/character-sets.xhtml
* @return binary characters in charset
*/
public static Blob encode(final String input, final String charset) {