Giter Site home page Giter Site logo

jh3y / driveway Goto Github PK

View Code? Open in Web Editor NEW
632.0 36.0 85.0 309 KB

pure CSS masonry layouts

Home Page: https://jh3y.github.io/driveway

License: Other

JavaScript 27.31% HTML 51.92% CSS 20.77%
masonry panel segment cluster layout layout-engine layouts ui html html5

driveway's Introduction

driveway's People

Contributors

jh3y avatar soul-wish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

driveway's Issues

Reduce class definitions for nested layouts

Issue summary

Clusters are essentially nested layouts so why not play on this fact and reduce the number of classes that need to be remembered.

Currently, we have a dw-cluster classname. But, this could just be a repeat of the dw classname?

It's worth playing with this to see if the amount of classes could be reduced. dw-cluster is essentially dw dw.

@jh3y

Order columns items

issue summary

Order different like masonry. The items is attached to the DOM in Column1 and down, Column2 and down

expected behavior

First item must be the first in the first column (ok) , second item -> first item in the second colum (bad)

browser used

Chrome, Safari, Firefox

Thanks!!

"Content in date order"?

Hi!

At first: Really great post, pretty much what i was looking for, thanks! :)

Could you elaborate on:

if you wanted to display a blog with the content in date order, this would be tricky. I think it would require some extra thought. One solution would be to wrap columns and then populate them in reverse date order. The result would be the newest item being in column one, the second newest in column two and so on.

Which is exactly my use case, i would want to have a masonry with images only in order of capture time.

PLEASE add info about browser compatibility

OK, this is an impressive piece of work, however the information I was looking for in the first place was the answer to the question "which browsers does this support?". Please add this very important information on top of the readme, thank you very much!

Whats the deal with the class names?

Hey, sorry for not following your issue guidelines, but I just want to know whats the deal with the class names. Its extremely hard to understand all the abbreviations, just look at this:

<div class="dw-pnl dw-flp dw-flp--md">
  <div class="dw-pnl__cntnt dw-flp__cntnt">
    <div class="dw-flp__pnl dw-flp__pnl--frnt">
      <h1>You can flip me round</h1>
    </div>
    <div class="dw-flp__pnl dw-flp__pnl--bck">
      <h1>Yeah that's right</h1>
    </div>
  </div>
</div>

What?! Is this supposed to be more readable?

What about this alternative:

<div class="dw-panel dw-flip dw-flip-medium">
  <div class="dw-panel-content dw-flip-content">
    <div class="dw-flip-panel dw-flip-panel-front">
      <h1>You can flip me round</h1>
    </div>
    <div class="dw-flip-panel dw-flip-panel-back">
      <h1>Yeah that's right</h1>
    </div>
  </div>
</div>

Implement chronological ordering

The common issue that arises or that I'm asked about is chronological ordering(left to right by order in DOM, usually date). This has been brought up in #1, #7 and #9. It has also been brought to my attention again when I saw a discussion about masonry pop up on Twitter.

This feature does require some JavaScript intervention and can not be implemented via pure CSS alone.

My aim is to implement this as an optional feature that will require some JavaScript to also be included. Think something like;

  <div class='dw dw--chronological'></div>

with;

const el = document.querySelector('#chronological')
const myDriveway = new Driveway(el)

@jh3y

Direction

Is there some way to change direction left to right so that you can have a feed chronologically. e.g newsfeed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.