Skip to content

Instantly share code, notes, and snippets.

View IpsumLorem16's full-sized avatar
:octocat:

IpsumLorem16

:octocat:
View GitHub Profile
@IpsumLorem16
IpsumLorem16 / animated-dismiss-all-button.markdown
Created April 18, 2021 13:00
Animated dismiss all button
@IpsumLorem16
IpsumLorem16 / animated-dismiss-all-button-as-an-object.markdown
Created April 18, 2021 12:59
Animated dismiss all button { as an object }

Animated dismiss all button { as an object }

A simple animated dismiss all button to dismiss notifications.

tidyed up, add more functions, and put inside an object

A Pen by IpsumLorem16 on CodePen.

License.

Accessible Toggle switch

Accessible toggle switch done the right way.

Personal preference: can be tabbed to, but does not gain focus on button/label click.

A Pen by IpsumLorem16 on CodePen.

License.

@IpsumLorem16
IpsumLorem16 / accessible-toggle-switch-different-styles.markdown
Created April 18, 2021 12:59
Accessible Toggle switch [different styles]

Accessible Toggle switch [different styles]

Accessible toggle switch.

With different styles using icons

A Pen by IpsumLorem16 on CodePen.

License.

@IpsumLorem16
IpsumLorem16 / index.html
Created April 18, 2021 12:59
SVG CSS Loading Icons (dots)
<svg class="bounce" role="status" version="1.1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 100" aria-labelledby="title desc">
<!-- accessible descriptors -->
<title id="title">Loading</title>
<desc id="desc"> fetching content, please wait.</desc>
<circle r="20%" cx="15%" cy="50%" color="#000"/>
<circle r="20%" cx="50%" cy="50%" color="#000"/>
<circle r="20%" cx="85%" cy="50%" color="#000"/>
</svg>
<svg class="fade-out" role="status" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 100">
@IpsumLorem16
IpsumLorem16 / index.html
Created April 18, 2021 12:57
Toggle switch
<!-- Delete content wrapper -->
<div class="content-wrapper">
<div class="toggle-container">
<label for="toggle-1" class="toggle-switch">
Label
</label>
<button role="switch" type="button" aria-checked="false" id="toggle-1" class="toggle-switch">
<span aria-hidden="true"></span>
<span class="knob"></span>
<span aria-hidden="true"></span>
@IpsumLorem16
IpsumLorem16 / index.html
Created April 18, 2021 12:57
Toggle switch- dropdown
<body data-show-bg="false">
<!-- Delete content wrapper -->
<div class="content-wrapper">
<div class="toggle-container">
<label for="toggle-1" class="toggle-switch">
Background
</label>
<button role="switch" type="button" aria-checked="false" id="toggle-1" class="toggle-switch">
<span aria-hidden="true"></span>
<span class="knob"></span>
@IpsumLorem16
IpsumLorem16 / animated-svg-likes-gsap-wip-fork.markdown
Created April 18, 2021 12:57
Animated SVG 'likes' (GSAP) [WIP]fork