Project-Timeline: Introduced timeline on projects

Limited to projects of category assets and film for now.
This commit is contained in:
2018-11-20 16:29:01 +01:00
parent 1d909faf49
commit fc99713732
10 changed files with 94 additions and 17 deletions

View File

@@ -0,0 +1 @@
export { transformPlaceholder } from './utils/placeholder'

View File

@@ -0,0 +1,15 @@
/**
* Fade out placeholder, then call callback.
* Note that the placeholder will not be removed, and will not be keeped hidden. The caller decides what to do with
* the placeholder.
* @param {jQueryObject} $placeholder
* @param {callback} cb
*/
export function transformPlaceholder($placeholder, cb) {
$placeholder.addClass('placeholder replaced')
.delay(250)
.queue(()=>{
$placeholder.removeClass('placeholder replaced');
cb();
})
}