Giter Club home page Giter Club logo

hovereffectideas's Introduction

hovereffectideas's People

Contributors

botelho avatar crnacura avatar mikestreety 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  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

hovereffectideas's Issues

Anchor tag on Lily only fills half the figure

The anchor tag in the Lily effect only takes up the bottom half of figure.effect-lily, although the pointer cursor, indicating a link, applies to the entire figure. Here's what I see when I inspect the node in Chrome on OS X.
screen shot 2014-10-18 at 7 00 53 pm
It seems like it's caused by the height attribute on the CSS style figure.effect-lily figcaption. It's only set to 50%. Of course, changing it to 100% fill the contain, but also screws up the text's position.

Making the View More link work on touch devices (after first tap state)

This isn't really a proper "issue" more of a question on your guys' go to method for making links within hover states work properly on touch devices. At the moment, if I download the repo as is and simply change <a href="#">View more</a> to <a href="http://www.something.com/">View more</a> if I touch the box, the effect does not happen, the browser thinks I want to go to that link and it takes me there. What would be great is a way of specifying you want one tap to mean bring up the box and link, the second tap actually then takes you to something.com.

I've experimented with javascript (jquery) based solutions before, such as using jQuery to add a class to the figure element on touch, but you can only use touchStart (which interferes with normal scrolling of the page) or touchEnd which could be missed if a user takes a long swipe/scroll through the page. This is the code I'm using at the moment on another project:

$('.portfolio__img').on("touchend", function (e) {
    "use strict"; //satisfy the code inspectors
    var link = $(this); //preselect the link
    if ( $( link ).hasClass( "portfolio__img--taphover" ) ) {
        return true;
    } else {
        link.addClass("portfolio__img--taphover");
        $('.portfolio__img').not(this).removeClass("portfolio__img--taphover");
        e.preventDefault();
        return false; //extra, and to make sure the function has consistent return points
    }
})

As mentioned though I'm not satisfied with the effect, and touchStart is worse as it messes up normal swipe scrolling by triggering the effect. It would be great if there was a "Tap" event or something. Or if there was a way of doing this in pure CSS. I tried making the z-index of the view more link 0 and then higher on hover, but that didn't work either.

I'd be very interested to hear what you guys do in production.

Thanks for the inspiration for these amazing effects.

Confusing CSS

First of all thank you for this awesome examples :)

I have found some difficulties integrating it because this necessary CSS is in the demo.css. If you try to copy only the set1.css it will not work well because the box-sizing rule is missing.

The effects should work even if you don't load the demo.css or normalize.css file. My tests were with Chico effect, maybe others do work fine.

Last, this group of code, also present in set2.css should be moved to demo.css.

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.