Adblock breaks this site

CSS3 + jQuery download buttons

Discussion in 'Web Programming' started by Jazz00006, Sep 26, 2012.

  1. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    CSS3 + jQuery download buttons

    I've been sitting on this script for a while, originally created in jQuery it only worked on 1 element.

    Today I re-wrote it in CoffeeScript. It now plays nice with all elements (or at least each of the 4 I tested).


    You can find the demo here: http://lab.jcode.me/coffeeButtons/

    Note: CSS3 only works in modern browsers.
    I've tested web-kit and gecko and they both loved it. IE9 only showed the button and the final hover, but not the transition effects. So if you're using IE they won't look as pretty as they do in other browsers.

    As usual you can find the source on GitHub and while it works currently I still haven't cleaned up the LESS style sheet (Technically it's still pure CSS, which I need to change).



    Questions and comments are always welcome. Don't forget to check out my lab if you want more web-code snippets.
     
  2. T R 1 B A L

    T R 1 B A L Grand Master
    Retired Sectional Moderator

    Joined:
    Jun 27, 2007
    Posts:
    2,726
    Referrals:
    1
    Sythe Gold:
    0
    CSS3 + jQuery download buttons

    This is lovely. The concept is great, and it works flawlessly on the two browsers I tested it on - will most probably use it in the near future :)
     
  3. Jazz00006

    Jazz00006 Apprentice
    Visual Basic Programmers

    Joined:
    Aug 26, 2005
    Posts:
    807
    Referrals:
    0
    Sythe Gold:
    0
    CSS3 + jQuery download buttons

    Even if you don't, thank you for the feedback, it's appreciated.


    I'm working on theming options so it's not stuck with default colours all the time.
    External links work now, and it's starting to handle http errors (404, 403, etc)
     
  4. Avaticus

    Avaticus Active Member

    Joined:
    Jan 26, 2011
    Posts:
    220
    Referrals:
    0
    Sythe Gold:
    0
    CSS3 + jQuery download buttons

    Just tested on FireFox 15.0.1 and it works great. Pretty neat. Nice job.
     
< Can anyone help me? | [JavaScript] Access multiple HTML Elements in Javascript. >


 
 
Adblock breaks this site