hakimel / kontext Goto Github PK
View Code? Open in Web Editor NEWA context-shift transition inspired by iOS
License: MIT License
A context-shift transition inspired by iOS
License: MIT License
Hey Hakim,
Kontext in one word is "AWESOME". I have been trying to integrate arrows instead of bullets for navigation. But keep running to the wall. Any assistance would be helpful :)
While Kontext is certifiably awesome, I'm having some problems integrating it with Bootstrap, mainly because of it's CSS. The animation for the previous slide doesn't seem to be working, and I can't actually understand why.
We at VersionEye are working hard to keep up the quality of the bower's registry.
We just finished our initial analysis of the quality of the Bower.io registry:
7530 - registered packages, 224 of them doesnt exists anymore;
We analysed 7306 existing packages and 1070 of them don't have bower.json on the master branch ( that's where a Bower client pulls a data ).
Sadly, your library hakimel/kontext
is one of them.
Can you spare 15 minutes to help us to make Bower better?
Just add a new file bower.json
and change attributes.
{
"name": "hakimel/kontext",
"version": "1.0.0",
"main": "path/to/main.css",
"description": "please add it",
"license": "Eclipse",
"ignore": [
".jshintrc",
"**/*.txt"
],
"dependencies": {
"<dependency_name>": "<semantic_version>",
"<dependency_name>": "<Local_folder>",
"<dependency_name>": "<package>"
},
"devDependencies": {
"<test-framework-name>": "<version>"
}
}
Read more about bower.json on the official spefication and nodejs semver library has great examples of proper versioning.
NB! Please validate your bower.json with jsonlint before commiting your updates.
Thank you!
Timo,
twitter: @versioneye
email: [email protected]
VersionEye - no more legacy software!
Hi Hakim,
I found an issue with Bootstraps fixed navbar. Let's assume you have the following structure:
<div class="kontext">
<div class="layer one show">
<nav class="navbar navbar-default fixed" role="navigation">
...
</nav>
</div>
<div class="layer two">
...
</div>
</div
When using Kontext like this, the Navbar is fixed to top but won't scroll along with the page. It just stays at the top.
I found a solution for this though, you just need to comment out the following CSS:
.kontext.capable {
-webkit-perspective: 1000px;
-moz-perspective: 1000px;
perspective: 1000px;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
transform-style: preserve-3d;
}
.kontext.capable .layer {
-webkit-transform: translateZ( -100px );
-moz-transform: translateZ( -100px );
transform: translateZ( -100px );
}
.kontext.capable .layer.show {
-webkit-transform: translateZ( 0px );
-moz-transform: translateZ( 0px );
transform: translateZ( 0px );
}
I have no idea why the above code makes Bootstraps navbar behave like this. Hope you can help me with this.
EDIT: I've found a better solution by just overwriting those properties like this:
.kontext.capable {
perspective: none;
transform-style: flat;
}
.kontext.capable .layer { transform: none; }
.kontext.capable .layer.show { transform: none; }
This solves the navbar behavior before calling k.next()
. After calling it the navbar is again fixed to the top of the page (not the top of the viewport like expected)
from chrome console:
Deferred long-running timer task(s) to improve scrolling smoothness. See crbug.com/574343.
I've been using this on a responsive project and I've found that in Safari on the mac when using an img tag on the slide when it hits this line in kontext.js...
if( !el.querySelector( '.dimmer' ) ) el.innerHTML += '
';it makes all the img tags height: 0. Not sure how to get it around it yet but it's a right pain!
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.