Skip to content

TechRepublic

  • Top Products
  • AI
  • Developer
  • Payroll
  • Security
  • Project Management
  • Accounting
  • CRM
  • Academy
Resources
  • TechRepublic Premium
  • TechRepublic Academy
  • Newsletters
  • Resource Library
  • Forums
  • Sponsored
Go Premium
Popular Topics
  • Top Products
  • AI
  • Developer
  • Payroll
  • Security
  • Project Management
  • Accounting
  • CRM
  • Academy
  • Project Management
  • Innovation
  • Cheat Sheets
  • Big Data
  • Tech Jobs
View All Topics
Go Premium
Developer

Two CSS modules create an interesting storytelling technique

By Ryan Boudreaux140 October 9, 2013, 9:51 AM PDT

Image
1
of 8

CSSShapesRegions_hero_112213.gif
CSSShapesRegions_hero_112213.gif
Two CSS modules create an interesting storytelling technique

Storytelling with CSS

Storytelling with CSS

This gallery is also available as an article: Cutting edge web development with CSS Shapes and CSS Regions.

I had the pleasure of participating in a one-on-one Adobe Connect webinar presentation given by Arno Gourdol, Sr. Director of Product Development at Adobe. Arno presented many tools from the Adobe Creative Cloud, and he followed up his presentation with several demonstrations representing progressive work within the web developer sphere, in particular HTML5 and CSS3 examples.

Along with a Q&A session during the accompanying telephone conversation, Arno demoed several technologies that Adobe has been helping to spearhead in recent months. One example that struck me was the demonstrated use of modules for CSS Shapes (which defines and contains the features of CSS relating to wrapping content around and inside shapes) and CSS Regions (which allows content to flow across multiple areas called regions); both of these modules are W3C Editor’s Drafts. (Read my related article: Experiment with CSS3 Exclusions and Shapes module.)

The demo highlights a storytelling technique that uses the CSS Shapes and CSS Regions modules and was created using Adobe Edge Code CC. Edge Code CC, also known as a “Design in the browser” tool, allows you to code HTML, CSS, and JavaScript faster with live development and offers quick editing code intelligence and integrated visual design tools. Another Adobe tool was used in the process of creating the demo website, but I have been told to hold off mentioning it until the beta release has been fully tested.

CSSShapesRegions_FigA_112213.gif
CSSShapesRegions_FigA_112213.gif
Two CSS modules create an interesting storytelling technique

Alice in Wonderland demo

Alice in Wonderland demo

This is a screen capture of the top of the demo page, as seen in Canary with the experimental features enabled.

CSSShapesRegions_FigB_112213.gif
CSSShapesRegions_FigB_112213.gif
Two CSS modules create an interesting storytelling technique

Warning message

Warning message

If you view the demo webpage without using Chrome Canary and enabling the experimental features, you’ll see the warning message that’s in this shot.

The links from the warning message are copied here for your reference: Adobe Web Platform Team, CSS Regions and CSS Shapes, Google Chrome Canary, CSS Regions Support Matrix, and the CSS Shapes Support Matrix.
CSSShapesRegions_FigC_112213.gif
CSSShapesRegions_FigC_112213.gif
Two CSS modules create an interesting storytelling technique

Enable Chrome Canary and experimental web platform features

Enable Chrome Canary and experimental web platform features

The website of the CSS storytelling technique is entitled Demo for Alice in Wonderland by Lewis Carroll Using CSS Shapes to enhance visual storytelling, and requires Chrome Canary to be installed along with several experimental features — Shapes, Regions, and Blend Modes — to be viewed correctly. To enable the three features, paste this text string into the address bar in Chrome Canary and press Enter:

chrome://flags/#enable-experimental-web-platform-features

Now ‘Enable’ the link within that section, and then click Relaunch at the bottom of Chrome Canary. The Enable Experimental Web Platform Features is shown in this figure.

CSSShapesRegions_FigD_112213.gif
CSSShapesRegions_FigD_112213.gif
Two CSS modules create an interesting storytelling technique

Under the hood

Under the hood

When you explore under the hood of the demo website using the web developer tools in Chrome Canary, the Inspect Element console Resources panel shows the HTML5 doctype, the use of an overlay, keyframes, alternate navigation for input devices, and the introduction slide and feature detection message. The top level view of the web page resource is displayed in this screen.

CSSShapesRegions_FigE_112213.gif
CSSShapesRegions_FigE_112213.gif
Two CSS modules create an interesting storytelling technique

Elements pane view

Elements pane view

In the Elements tab of the developer tool, we see the first content div, which is contained within another div with an id equals “scene1”, with the CSS shape style applied to the following HTML code snippet:

rn

rn Alice in Wonderlandrn

rn

Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do: once or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, 'and what is the use of a book,' thought Alice 'without pictures or conversation?'rn So she was considering in her own mind whether the pleasure of making a daisy-chain would be worth the trouble of getting up and picking the daisies, when suddenly a White Rabbit with pink eyes ran close by her.rn In another moment down went Alice after it, never once considering how in the world she was to get out again.rn

rn

And the CSS code snippet including the polygon shape style:

.content {rnposition: relative;rnwidth: 33em;rnheight: 75em;rnbox-sizing: border-box;rnmargin-left: 37.5em;rnpadding-top: 9em;rn-webkit-shape-inside: polygon(0em 0em, 33em -0.06em, 33.13em 23.75em, 30em 23.88em, 28em 25.88em, 28em 28.75em, 32.88em 33em, 31.38em 37.5em, 27.75em 37.88em, 23.31em 42.56em, 22.56em 45.88em, 24.5em 46.81em, 21.19em 49.56em, 24em 53.13em, 27em 53.13em, 28.81em 61.13em, 26.31em 74.88em, 0em 75em, 0em 65.94em, 2em 58em, 11.94em 53.5em, 11.25em 49.69em, 8.75em 47.25em, 9.44em 44.94em, 1.81em 43.75em, 0em 40em, 6.38em 40em, 12.44em 38.5em, 15.75em 35.25em, 9.88em 35.25em, 8.69em 33.5em, 5.63em 31.75em, 10.75em 30.19em, 5.44em 28.75em, 3.44em 25.19em, 7.25em 23.75em, 4em 23.44em, 1em 20.63em, 2.88em 18.5em, 1.25em 15.63em, 5.63em 11.69em, 6.13em 6.94em, 3.25em 2.44em);rn}
CSSShapesRegions_FigF_112213.gif
CSSShapesRegions_FigF_112213.gif
Two CSS modules create an interesting storytelling technique

Alice in the Caterpillar's mushroom lair

Alice in the Caterpillar's mushroom lair

The script list

The demo uses jQuery and JavaScript resources to assist with the scrolling and animation effects, which also help to provide a sense of parallax scrolling throughout the storytelling sequences. Script resources include the following:

  • jQuery (jquery-2.0.3.min.js)
  • Superscrollorama jQuery plugin (jquery.superscrollorama.js) by John Polacek for doing scroll animations.
  • scroll-driver.js, which is licensed by Adobe and is used to position a fixed element to the viewport using @param {String} position with optional edge of the element to pin settings.
  • ScrollToPlugin.min.js by @author: Jack Doyle.
  • TweenMax.min.js plugin by GreenSock, which includes: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, and DirectionalRotationPlugin.

The part of the storytelling seen in this screen shot takes you down the rabbit hole with Alice and into the Caterpillar’s mushroom lair; this is where the demo starts scrolling from left to right as the story and document progresses. The Caterpillar’s story line continue to scroll up and into the shapes of wafting smoke clouds that eventually accumulate above their heads during their conversation. 

CSSShapesRegions_FigG_112213.gif
CSSShapesRegions_FigG_112213.gif
Two CSS modules create an interesting storytelling technique

Cheshire Cat

Cheshire Cat

As you continue to scroll into the next scene, we see the Cheshire Cat falling down the rabbit hole.

Check out the site to see the final scenes of the demonstration.
Summary

Chrome Canary is helping web developers in the sandbox and giving them an opportunity to experiment with cutting edge HTML5, CSS3, and scripting technologies that support the effort to break barriers that other modern browsers cannot touch. Along with the endeavors like the Alice demo from the Adobe Product Development Team, there’s a growing trend toward exciting web development technologies, tools, and coding languages that redefine the web and online experiences.

Disclaimer: I have not tried any of the Adobe Creative Cloud products mentioned in this article; I hope to review several of them using the free 30-day trial periods for testing and reviewing purposes. Also, I have not been compensated for or offered any payments in kind or otherwise for the reviews or statements I make in reference to Adobe products.

  • Developer
  • Account Information

    Share with Your Friends

    Two CSS modules create an interesting storytelling technique

    Your email has been sent

Share: Two CSS modules create an interesting storytelling technique
Image of Ryan Boudreaux140
By Ryan Boudreaux140
Thirteen years of web and graphic developer experience.
  • Account Information

    Contact Ryan Boudreaux140

    Your message has been sent

  • |
  • See all of Ryan's content

Daily Tech Insider

If you can only read one tech story a day, this is it.

TechRepublic TechRepublic
  • TechRepublic on Facebook
  • TechRepublic on X
  • TechRepublic on LinkedIn
  • TechRepublic on YouTube
  • TechRepublic on Pinterest
  • TechRepublic RSS
Services
  • About Us
  • Newsletters
  • RSS Feeds
  • Site Map
  • Site Help & Feedback
  • FAQ
  • Advertise
  • Do Not Sell My Information
  • Careers
Explore
  • Downloads
  • TechRepublic Forums
  • Meet the Team
  • TechRepublic Academy
  • TechRepublic Premium
  • Resource Library
  • Photos
  • Videos
  • Editorial Policy
  • Legal Terms
  • Privacy Policy
© 2025 TechnologyAdvice. All rights reserved.
CLOSE

Create a TechRepublic Account

Get the web's best business technology news, tutorials, reviews, trends, and analysis—in your inbox. Let's start with the basics.

Already registered? Sign In
Use Facebook
Use Linkedin

* - indicates required fields

CLOSE

Sign in to TechRepublic

Not a member? Create an account
Use Facebook
Use Linkedin

Lost your password? Request a new password

CLOSE

Reset Password

Please enter your email adress. You will receive an email message with instructions on how to reset your password.

Check your email for a password reset link. If you didn't receive an email don't forgot to check your spam folder, otherwise contact support.

Back to login
1 Finish Profile
2 Newsletter Preferences
CLOSE

Welcome. Tell us a little bit about you.

This will help us provide you with customized content.

No thanks, continue without
1 Finish Profile
2 Newsletter Preferences
CLOSE

Want to receive more TechRepublic news?

Newsletter Name
Subscribe
Daily Tech Insider
Daily Tech Insider AU
TechRepublic UK
TechRepublic News and Special Offers
TechRepublic News and Special Offers International
Executive Briefing
Innovation Insider
Project Management Insider
Microsoft Weekly
Cloud Insider
Data Insider
Developer Insider
TechRepublic Premium
Apple Weekly
Cybersecurity Insider
Google Weekly
Toggle All
No thanks, continue without

You're All Set

Thanks for signing up! Keep an eye out for a confirmation email from our team. To ensure any newsletters you subscribed to hit your inbox, make sure to add [email protected] to your contacts list.

Back to Home Page
×