Recurss is a collection of recursive css specimens. These specimens work by styling pages that contain nothing but nested divs:
<div>
<div>
<div>
...
</div>
</div>
</div>
Some surprisingly interesting patterns can be created by styling these nested divs. Take a look at the site to see the latest examples.
Submissions to the Recurss collection are highly welcome. Take a look at how some of the existing specimens are implemented for inspiration.
Specimens guidelines:
- Must make use of recursion.
- No external resources (data uris ok).
Get Started
-
Fork this repository.
-
Open your fork locally
-
Create a branch to work on:
git checkout -b new-specimen
-
Install jekyll and dependencies:
bundle update
-
Start Jekyll:
bundle exec jekyll serve
You can now browse a local copy of Recurss on http://localhost:4000
Creating a new specimen
-
Now to add your specimens. Copy the file
_posts/2018-01-01-template.txt
. Name it with the current date and the title of your specimen. Dates are in the form: Year-Month-Day -
In your new file, remove the line reading
published: false # Remove this line!!!
-
In your new file, also fill in the
title
andauthor
info. -
(Optional) Also fill in the
settings
section:max
— Maximum value or recursionsstart
— Starting number of recursions on page loadautoplay
— 0 or 1. Should recursions start playing when the page is loaded?`
-
Now write your css in the main body of the page. You can view your page on http://localhost:4000 while developing it.
-
One you are happy with your specimen, take a png screenshot of it. Name the screenshot the same as your post (except with
.png
instead of.txt
) and add the screenshot file in thepreviews
directoryPlease make sure your screenshot:
- Does not include any browser chrome.
- Is at most 1200px wide.
Submitting your specimen
-
Commit your specimen and the screenshot. Push your branch to github.
-
Open a pull request from your branch against
master
in therecurss.github.io
repo. -
We'll merge your PR and publish it to the site as soon as we are able to review it.