flackr / carousel Goto Github PK
View Code? Open in Web Editor NEWExplainer for a set of features allowing the creation of CSS customizable carousels.
License: Apache License 2.0
Explainer for a set of features allowing the creation of CSS customizable carousels.
License: Apache License 2.0
Please see the Invokers Proposal for details. But that API proposal allows any button to "target" any other element, and provide an action to take on that target. It seems like scroll up/down might make a good use case for this API? As in
<div id=scroller> Content </div>
<button id=scroll_up invoketarget=scroller invokeaction="scroll up"> UP </button>
Currently there's left, right, top, and bottom pseudo selectors but not one that can style all of them at once. Should there be?
Be really nice for authors to provide a label for the marker dots. Could find content from a contextually relevant [title]
on a node, or something that's explicitly passed for higher control?
What should the focus order of the generated scroll markers be? Currently what's implemented in the polyfill puts them immediately after the scrollable area, but the tree order for pseudo elements would usually place them immediately after their originating element.
there are a few options here:
I suspect that there are use cases where you would expect 1 (tab-like interfaces) or 2 (marker-like interfaces) depending on where visually the scroll markers appear.
This could be a little odd in that the only tabbable scroll marker, the active one, could be either before or after the content you have focused in the scroller.
If I am understanding properly, the really powerful thing about the scroll-marker
idea is that it lets you write something to style the 'active one' with :checked
, like ::scroll-marker:checked { background: pink; }
. This would be super to be able to mix with the grid-flow
example because very often it would be the case where if using this for something more like 'tabs' (panelset-style tabs at least) it's not likely to be possible or easy to do that part in CSS. Is there a way you could do this? The only one I could maybe think of is via :attr()
, but ideally that would not be just through an attribute for internationalization/localization reasons
todo:
might be able to get away with a win win svg solution, where the svg icon has a text node. or a title on the button. needs tested, but screen readers need to know what the button does.
This doesn't actually seem to work for me?
https://flackr.github.io/carousel/examples/fragmentation/flowing/
if there are a lot of pages, it's nice to add a count to the pagination, like 2 of 25
. Might be possible to do with counters with ::page
specifying counter-increment
?
Currently arrow keys trigger navigation when using the markers, because they're a radio group, which also means they cycle around. Should the same behavior be applied to a focused next/previous buttons?
If the next button becomes disabled, focus shifts to the previous button.
If the previous button becomes disabled, focus shifts to the next button.
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.