Frankie Benevides Jr.

Deconcealer Plugin Options

As I was sketching this out there were a ton of questions about how it should work. Instead of making any usage assumptions, I chose a basic default with multiple options that define visual attributes and functionality. Normally this isn’t my approach (I prefer purpose-built solutions), but given my original request I felt it was warranted for this exercise.

Default

This is the default appearance when no options are added.

Content Offset

data-offset="[integer]" : offset of image on page load (default: vertically centered)

Start Height

data-startHeight="[integer]" : height the module starts at (default: 100)

Open Height

data-openHeight="[integer]" : height of revealer when open (default: detected)

Absolute Positioning

data-absolute="[boolean]" : absolutely positioned layout (default: false)

Top, Center, or Bottom Alignment

data-alignment="[top, bottom, center, none]" : alignment of the module relative to the page when fully open (default: calculated)



Multiple Open Modules

data-multiples="[boolean]" : Allow or disallow multiple deconcealers to be open at the same time (default: true)

Inline

data-inline="[boolean]" : inline (float) layout (default: false)

Cras a orci. Quisque orci eros, suscipit nec, sollicitudin non, laoreet eget, tortor. Maecenas dignissim faucibus felis. Cras a justo sit amet est pellentesque viverra. Vestibulum lobortis aliquet velit. Morbi egestas orci quis justo. Etiam ornare turpis id risus. Praesent cursus neque a nunc. Mauris ornare pretium eros. Ut sed nulla. Integer molestie. Pellentesque et odio vitae purus fermentum aliquet. Mauris scelerisque. Donec imperdiet nunc a nunc. Quisque adipiscing tellus eu nisi. Sed laoreet porta ipsum. Etiam ipsum tortor, varius et, interdum quis, luctus non, lorem. Praesent auctor velit nec lacus. Nullam tempus sem sed nibh. Maecenas lectus orci, ultrices sit amet, imperdiet at, tincidunt molestie, felis.