A Pen by berkin
How do I make an a pen by berkin?
What is a a pen by berkin? How do you make a a pen by berkin? This script and codes were developed by Berkin on 10 September 2022, Saturday.
A Pen by berkin - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by berkin</title>
</head>
<body> <div data-page="pull-to-refresh" class="page page-on-center">
<div class="page-content pull-to-refresh-content">
<div class="pull-to-refresh-layer">
<div class="preloader"></div>
<div class="pull-to-refresh-arrow"></div>
</div>
<div class="list-block media-list">
<ul>
<li class="item-content">
<div class="item-media"><img src="http://hhhhold.com/88/d/jpg?1" width="44"></div>
<div class="item-inner">
<div class="item-title-row">
<div class="item-title">Yellow Submarine</div>
</div>
<div class="item-subtitle">Beatles</div>
</div>
</li>
<li class="item-content">
<div class="item-media"><img src="http://hhhhold.com/88/d/jpg?2" width="44"></div>
<div class="item-inner">
<div class="item-title-row">
<div class="item-title">Don't Stop Me Now</div>
</div>
<div class="item-subtitle">Queen</div>
</div>
</li>
<li class="item-content">
<div class="item-media"><img src="http://hhhhold.com/88/d/jpg?3" width="44"></div>
<div class="item-inner">
<div class="item-title-row">
<div class="item-title">Billie Jean</div>
</div>
<div class="item-subtitle">Michael Jackson</div>
</div>
</li>
</ul>
<div class="list-block-label">
<p>Just pull page down to let the magic happen.<br>Note that pull-to-refresh feature is optimised for touch and native iOS scrolling so it may not work on desktop browser.</p>
</div>
</div>
</div>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.1/modernizr.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
A Pen by berkin - Script Codes JS Codes
/*======================================================
************ Pull To Refresh ************
======================================================*/
var app = app || {};
app.initPullToRefresh = function () { var isTouched, isMoved, touchesStart = {}, isScrolling, touchesDiff, touchStartTime, container, refresh = false, useTranslate = false, startTranslate = 0; function handleTouchStart(e) { if (isTouched) return; isMoved = false; isTouched = true; isScrolling = undefined; touchesStart.x = e.type === 'touchstart' ? e.targetTouches[0].pageX : e.pageX; touchesStart.y = e.type === 'touchstart' ? e.targetTouches[0].pageY : e.pageY; touchStartTime = (new Date()).getTime(); } function handleTouchMove(e) { if (!isTouched) return; var pageX = e.type === 'touchmove' ? e.targetTouches[0].pageX : e.pageX; var pageY = e.type === 'touchmove' ? e.targetTouches[0].pageY : e.pageY; if (typeof isScrolling === 'undefined') { isScrolling = !!(isScrolling || Math.abs(pageY - touchesStart.y) > Math.abs(pageX - touchesStart.x)); } if (!isScrolling) { isTouched = false; return; } if (!isMoved) { /*jshint validthis:true */ container = $(this); container.removeClass('transitioning'); startTranslate = container.hasClass('refreshing') ? 44 : 0; if (container[0].scrollHeight === container[0].offsetHeight || app.device.os !== 'ios') { useTranslate = true; } else { useTranslate = false; } } isMoved = true; touchesDiff = pageY - touchesStart.y; if (touchesDiff > 0 && container[0].scrollTop <= 0 || container[0].scrollTop < 0) { if (useTranslate) { e.preventDefault(); container.transform('translate3d(0,' + (Math.pow(touchesDiff, 0.85) + startTranslate) + 'px,0)'); } if ((useTranslate && Math.pow(touchesDiff, 0.85) > 44) || (!useTranslate && touchesDiff >= 88)) { refresh = true; container.addClass('pull-up'); } else { refresh = false; container.removeClass('pull-up'); } } else { container.removeClass('pull-up'); refresh = false; return; } } function handleTouchEnd(e) { if (!isTouched || !isMoved) { isTouched = false; isMoved = false; return; } container.addClass('transitioning'); container.transform(''); if (refresh) { container.addClass('refreshing'); container.trigger('refresh', { done: function () { app.pullToRefreshDone(container); } }); } isTouched = false; isMoved = false; } $(document).on(app.touchEvents.start, '.pull-to-refresh-content', handleTouchStart); $(document).on(app.touchEvents.move, '.pull-to-refresh-content', handleTouchMove); $(document).on(app.touchEvents.end, '.pull-to-refresh-content', handleTouchEnd);
};
app.pullToRefreshDone = function (container) { container = $(container); if (container.length === 0) container = $('.pull-to-refresh-content.refreshing'); container.removeClass('refreshing').addClass('transitioning'); container.transitionEnd(function () { container.removeClass('transitioning pull-up'); });
};
Developer | Berkin |
Username | berkin |
Uploaded | September 10, 2022 |
Rating | 3 |
Size | 2,647 Kb |
Views | 30,360 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
CSS switch, works with swipes | 4,825 Kb |
Tether control | 15,630 Kb |
Touch carousel with hammer.js | 14,992 Kb |
IOS style alphabetic scroll | 3,488 Kb |
Tether control | 2,582 Kb |
Big factorial | 1,567 Kb |
Tap and hold carousel with hammer.js | 4,945 Kb |
Javascript - Selection Sort | 1,577 Kb |
Merge overlapping intervals | 1,889 Kb |
Background origin, content-box | 1,632 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
A Pen by boilzzz | Boilzzz | 2,761 Kb |
Eunice A | Ejbronze | 2,203 Kb |
Acorrdian 2016 | Milanodituti | 3,720 Kb |
Click Based Rotation Demo | Zeaklous | 2,086 Kb |
Easing | GreenSock | 2,043 Kb |
SVG Hover Animations | Kjbrum | 10,557 Kb |
Flat design iframe | Damienpm | 1,819 Kb |
Experiment | Toddmoy | 2,849 Kb |
AngularJS Skills | Supro | 3,312 Kb |
Spin | Elalemanyo | 8,262 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!