wbotelhos / capty Goto Github PK
View Code? Open in Web Editor NEWjQuery Capty - A Caption Plugin
Home Page: http://wbotelhos.com/capty
License: MIT License
jQuery Capty - A Caption Plugin
Home Page: http://wbotelhos.com/capty
License: MIT License
/** * jQuery Capty - A Caption Plugin - http://wbotelhos.com/capty * -------------------------------------------------------------------------- * * jQuery Capty is a plugin that creates captions over the images. * * Licensed under The MIT License * * @version 0.2.1 * @since 12.18.2010 * @author Washington Botelho dos Santos * @link http://wbotelhos.com/capty * @twitter http://twitter.com/wbotelhos * @license http://www.opensource.org/licenses/mit-license.php MIT * @package jQuery Plugins * * Thanks to: * -------------------------------------------------------------------------- * DinisM * * Default values: * -------------------------------------------------------------------------- * animation: 'slide' // The captions animation type: 'slide', 'fade' or 'fixed'. * cCaption: 'capty-caption' // The class name of the wrapper caption. * cImage: 'capty-image' // The class name of the wrapper image. * cWrapper: 'capty-wrapper' // The class name of the wrapper image and caption. * height: 30 // The height of the caption. * opacity: .7 // The opacity of the caption. * prefix: '' // The text/html that will be applied at the beginning of the legend. * speed: 200 // The speed in which caption will appear and disappear. * sufix: '' // The text/html that will be applied at the end of the caption. * * Usage with default values: * -------------------------------------------------------------------------- * * $('#capty').capty(); * * <img id="capty" src="image.jpg" alt="Super Mario Bros.®" width="150" height="150"/> * */
One can obviously create different jquery handlers to assign different wrapper names via image classes, say .caption-right with cWrapper:'capty-wrapper-right', but that is tiresome and does not help teach it to end-users. Anyway to make it so that it reads the image float or class to assign it automatically?
When images have a % width rather than a fixed one, capty doesnt work. Tried implementing in bootsrap and it breaks
I suggest to use “longdesc” attribute insted of “name” (there is no “name” attribute for image tag)
I am not sure if it is a css conflict but text that does not fit in the default height of the subtitle bar seems to be hidden/cut in middle. Do others experience this as well?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.