Skip to content

Instantly share code, notes, and snippets.

View RotanaGit's full-sized avatar

Rotana RotanaGit

  • cambodia phnom, penh
View GitHub Profile
@RotanaGit
RotanaGit / index.html
Created September 12, 2015 06:00
uSwitch pure CSS select control v1.0
<link href='//www.uswitch.com/webfont/fonts/v16/stylesheet.css' media='all' rel='stylesheet' type='text/css' />
<!-- only loaded in for a consistently sized drop arrow for firefox, but included by default in uSwitch, so carries no extra penalty for us -->
<form>
<table width="100%" cellspacing="0" border="0">
<tr class="toprow">
<th></th>
<th>unwrapped</th>
<th>wrapped</th>
</tr>
@RotanaGit
RotanaGit / Fullscreen drag-slider with parallax.markdown
Created September 10, 2015 08:36
Fullscreen drag-slider with parallax

Fullscreen drag-slider with parallax

Sort of responsive. Tested in Chrome/FF/last IE, everywhere looks fine.

Source of inspiration - https://stupid-studio.com/ (their js is minified, so all code is mine, except some parts of svg, like viewBox/minHeight).

A Pen by Nikolay Talanov on CodePen.

License.

@RotanaGit
RotanaGit / Responsive Nav Menu.markdown
Created September 7, 2015 09:49
Responsive Nav Menu

Responsive Nav Menu

Here is a responsive navigation menu using the checkbox hack with jQuery animation.

A Pen by Chyno Deluxe on CodePen.

License.

@RotanaGit
RotanaGit / Springing Particles.markdown
Created September 5, 2015 09:37
Springing Particles
@RotanaGit
RotanaGit / 'Hero' buttons with animated icons.markdown
Created August 26, 2015 09:22
'Hero' buttons with animated icons

In && Out

Made some buttons. They fill up with color when you hover. Color moves in && out based on mouse direction.
Works with touch / tap also, but Direction Out is based on position of NEXT button tap.
Tested in Chrome, Firefox, && IE11

A Pen by Tiffany Rayside on CodePen.

License.

@RotanaGit
RotanaGit / Webflow-style email input.markdown
Created August 26, 2015 06:48
Webflow-style email input

Blobs button

Originally I found this button on this site - https://isl.co/ and recreated it. Their version is broken in FF (already contacted them), because svg filter is imported as external file (I'm like 90% sure). This is a problem with FF, if svg, which containes filter, don't actually on the page (or have display: none) whole element with this filter will be invisible.

IE don't support css filters at all, so it have bigger blobs, and other browsers have smaller blobs with help of @supports rule (turns out this thing can be really useful!).

A Pen by Nikolay Talanov on CodePen.

License.

@RotanaGit
RotanaGit / Button Outline Animation.markdown
Created August 26, 2015 06:43
Button Outline Animation
@RotanaGit
RotanaGit / Stick-man Animation.markdown
Created August 26, 2015 06:41
Stick-man Animation