Forums

  • # October 18, 2013 at 10:53 pm

    Here is a snippet that I’m using on a project but I thought it was pretty cool so, I put it on Codepen.

    It’s pretty fun to sit there and pull the trigger. Maybe it needs a sound effect.

    Enjoy!

    http://codepen.io/Joe_Temp/pen/BEdfz

    # October 19, 2013 at 2:57 pm

    Nice!!!

    # October 24, 2013 at 5:17 pm

    That’s really cool! – A sound effect would help make this even better. Have you thought about localizing the click to only work on the trigger area? (although that might confuse some people)

    # October 25, 2013 at 6:56 pm

    It doesn’t work in IE because the child elements are getting in the way of making the parent active. To fix this add

    height:350px;
    width:550px;
    background-color: rgba(0,0,0,0);

    to the #gun div and change the z-index of all of the children to a negative number appropriate to where they need to be. This will place the parent div on top (the transparent background color makes it clickable and the height and width gives it the area to click). When you do this it will work in IE.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

icon-anchoricon-closeicon-emailicon-linkicon-logo-staricon-menuicon-nav-guideicon-searchicon-staricon-tag