GithubHelp home page GithubHelp logo

codrops / imagegrideffects Goto Github PK

View Code? Open in Web Editor NEW
210.0 14.0 56.0 4.33 MB

Some inspiration for effects on image grids. The ideas include animations on the opening grid item, the disappearance of the grid and the resulting view.

Home Page: http://tympanus.net/codrops/2015/10/15/effect-ideas-for-image-grids/

CSS 26.35% HTML 63.04% JavaScript 10.61%

imagegrideffects's Introduction

Image Grid Effects

Some inspiration for effects on image grids. The ideas include animations on the opening grid item, the disappearance of the grid and the resulting view.

Article on Codrops

Demo

License

Integrate or build upon it for free in your personal or commercial projects. Don't republish, redistribute or sell "as-is".

Read more here: License

Credits

Masonry by David DeSandro. Released under the MIT license.

Font Awesome created by Dave Gandy. License: Font Awesome license information.

Camera icons made by Freepik from www.flaticon.com is licensed by CC BY 3.0

Images from Unsplash.com

Misc

Follow Codrops: Twitter, Facebook, Google+, GitHub, Pinterest

© Codrops 2015

imagegrideffects's People

Contributors

crnacura 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

imagegrideffects's Issues

Example 5 Different Album Link

Hi again:)

i want to give different album links to collages actually i want to make different collages for every different images . Is there any solution for this?

Edit: i bring button to desc. and ok but different collages still waiting

Demo 2, pop up scrolling

Hi,

First of all, amazing grid and thank you for sharing.

Now, the problem. I am using this grid and when I click the image it pops up and everything is good, but when I scroll it the pop up with the original image and the details scrolls and don't stay on top. Or when I scroll down the grid and click an image that is way down on the grid I get a black screen unless I scroll to the top of the page where the pop up preview is stuck. I want it so that when I click the image it does not scroll, and when I look at your demo it works and on mine it scrolls.

screen shot 2016-02-09 at 1 59 46 pm

(Everything is good until....)

screen shot 2016-02-09 at 1 56 58 pm

(... you scroll and the black at the bottom shows up.) (P.S. Ignore the spelling error in the image. ;P)

I think I know where the problem lies, but don't know how to fix it. So here is where I think it is.
Since I am using another Tympanus theme called "Page Stack" and that theme is not scrollable and I wanted to use your grid theme (which needs scroll), I made it scrollable by writing page.style.overflow = 'scroll'; into the following javascript for the navigation.

 for(var i = 0; i < pagesTotal; ++i) {
            var page = pages[i],
                posIdx = stackPagesIdxs.indexOf(i);

            if( current !== i ) {
                classie.add(page, 'page--inactive');

                if( posIdx !== -1 ) {
                    // visible pages in the stack
                    page.style.WebkitTransform = 'translate3d(0,100%,0)';
                    page.style.transform = 'translate3d(0,100%,0)';
                }
                else {
                    // invisible pages in the stack
                    page.style.WebkitTransform = 'translate3d(0,75%,-300px)';
                    page.style.transform = 'translate3d(0,75%,-300px)';     
                }
            }
            else {
                classie.remove(page, 'page--inactive');
                page.style.overflow = 'scroll';
            }

Now I don't know how to make it so that when the image preview opens page.style.overflow = 'scroll'; disables. I tried putting page.style.overflow = 'hidden'; in the javascript for the grid. I also tried page.style.height = 'initial';. So what should I change in the javascript to make it not scroll?

Here is the link to the live "website". The grid located in the menu under photos.

Issue with clickEvent for FireFox

clickEvent = (document.ontouchstart!==null ? 'click' : 'touchstart');

Just wanted to let you know, firefox returns touchstart all the time on the clickEvent var, at least for me that is.
My ff is bugged, works on my coworkers PC. Closing.

Ajax support

It would be super cool, if the modal content would be loaded via ajax.

Demo#02 Mobile Friendly

Hi,

Is there a possibility to smoothly change the fullscreen view ui of the selected image.
Instead of having left (photo) - right (data), can we go top (photo) - bottom (data)?

About example 2

Hi @crnacura ,
i follow tympanus few years first thanks for everything really good content!
About this grid effects i play with 2nd example i added to head modernizr.js and style2.css for body added other jss and script exaclty like example. and run it. But it didnt works error was at :
main.js :80
Uncaught TypeError: Cannot read property 'querySelector' of null
What do you think about this?
ekran resmi 2015-11-02 15 09 39

Android Firefox image popup issue

I've been playing with this and come across a very strange behaviour on firefox for android (everything else is fine, it's most puzzling), namely if the image has been cached it popups up as an image before the preventDefault() function has a chance to trigger.

Haven't been able to replicate in any other browser, so I think it might be something of an edge case, just wondered if anyone had any ideas as to what might be the cause.

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.