• Stars
    star
    98
  • Rank 335,149 (Top 7 %)
  • Language
    CSS
  • Created about 11 years ago
  • Updated over 10 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The evil, fumbling, JavaScript free, slide thingy

Slideshowbob.css

A slide framework powered by :checked

Once again I did a talk and as usual I got caught up in the meta process of slide creation, this project is what happened.

Check out the example deck

See demo deck for awesome :checked powered slides to impress all your friends.

Works nicely on mobile

The slide animation is hardware accelerated so it's smooth as butter on mobiles.

Powerful build system

I have a build system in place not to make CSS more complicated but to take the complication out of this project. It uses SASS so I can create a helpful mixin to generate the mind melting selectors needed to do the slide system, autoprefixer to add prefixes based on caniuse.com data and CSSLint to make sure nothing silly is done.

Get setup

  1. Install node.js
  2. Run npm install grunt-cli if you don't already have grunt >=0.4.0 installed.
  3. Inside this project folder run npm install to get the dependencies
  4. Run grunt to generate files inside dist folder.

Adjust slide count

Unfortunately this slide system needs to know your total slide count in order to function correctly, thankfully SASS makes this really easy. Just update the $slide-count variable in the _variables.scss file and run grunt to re-generate the CSS.

Markup order is important

You must follow the convention of the example slide deck when creating your markup. Radio inputs need to appear at the top for each slide.

<div class="slideshowbob">
    <input type="radio" checked autofocus id="slideshowbob1" name="slider">
    <input type="radio" id="slideshowbob2" name="slider">

    <div class="slideshowbob__container">
        <div class="slideshowbob__slide">
          <div class="slideshowbob__slide__content">
            <!-- Any html content for slide can go here -->
          </div>
        </div>
    </div>
    <!-- ... More slides -->

    <!-- Slide controls must appear here with for attribute matching correct radio input -->
    <div class="slideshowbob__controls">
        <label for="slideshowbob1"></label>
        <label for="slideshowbob2"></label>
    </div>
    
    <!-- Completely optional, only needed if you want the progress bar at the bottom of the window -->
    <div class="slideshowbob__progress"></div>
</div>

Sourcemaps

If you use the bleeding edge version of SASS you can generate a sourcemap file so debugging in the browser is awesome. The example slide deck has a sourcemap file already included.

More Repositories

1

react-frame-component

Render your React app to an iFrame
JavaScript
1,690
star
2

H5F

Deprecated, please use hyperform instead https://github.com/hyperform/hyperform
JavaScript
743
star
3

bunyip

Automate client-side unit testing in real browsers using the CLI
JavaScript
383
star
4

source-map

This is an unconnected fork of Mozilla's source-map library
JavaScript
224
star
5

60fps-scroll

Deprecated - A little library that *could* make your site scroll faster
JavaScript
213
star
6

redux-debounced

Debounce middleware for Redux
JavaScript
166
star
7

ScrollListView

Performant list view that re-uses cells to display large data sets
JavaScript
80
star
8

font-dragr

Drag and drop font testing
HTML
67
star
9

gulp-es6-module-transpiler

JavaScript
61
star
10

bootleg

Bootleg: Dodgy JavaScript free bootstrap plugins
HTML
60
star
11

earthin24

Source code for my twitter bot https://twitter.com/earthin24
Go
22
star
12

yeti-adaptors

Use Yeti with other client-side testing frameworks
JavaScript
18
star
13

sourcemap-onerror

Lookup original location from window.onerror by querying source map
JavaScript
18
star
14

web-components

A talk about web components. What they are and what they offer.
CSS
17
star
15

BrowserSocket

Create a socket server in the browser
JavaScript
15
star
16

sunrise-lifx

Simulate a sunrise effect using the Lifx ruby gem
Ruby
15
star
17

markdown-component

A Web Component to parse markdown to html
14
star
18

picture-component

<x-picture> element for responsive images
6
star
19

SUX

SUX.js a little JavaScript helper to expand short URLs
JavaScript
6
star
20

spaces-talk

Super serious talk on why spaces are the best and you're an idiot if you use tabs
JavaScript
6
star
21

FSA

JavaScript library to give you some helper methods to read and write files or directories using the new File API: Directories and System API
JavaScript
5
star
22

jemena-powershop

Jemena + powershop = almost realtime total power usage
JavaScript
4
star
23

solar-dashboard

A solar dashboard for the Adafruit MagTag
Python
4
star
24

slideshow-component

Every developer who does a talk on Web Components inevitably creates a slideshow component
4
star
25

flexbox-wds13

Flexbox talk for Web Diretions South 2013
JavaScript
3
star
26

travis-ci-templates

A series of templates to get you started with travis-ci integration in your repo
JavaScript
3
star
27

webcomponents-talk

The Composable Web with Web Components
CSS
2
star
28

es6-module-macro

ES6 Module macro that expands to commonjs
JavaScript
1
star
29

css-switch

A simple recreation of the iOS toggle switch using CSS
CSS
1
star
30

layouts

Demo jekyll templates for my projects
1
star
31

webpack-talk

A short look at webpack a module bundler for building web applications
CSS
1
star
32

dumplingsjs.com

Dumplings and JavaScript
1
star
33

bespoke-dir

Add a class to the slide parent element to let you know which direction the slides are going
JavaScript
1
star
34

source-map-workflows

A collection of workflows for client side apps that involve creating source maps
1
star