Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <h1>WebDesignerDepot Pagination</h1>
<nav class="pagination-container">
		<div class="pagination">
				<a class="pagination-newer" href="#">PREV</a>
				<span class="pagination-inner">
					<a href="#">1</a>
					<a class="pagination-active" href="#">2</a>
					<a href="#">3</a>
					<a href="#">4</a>
					<a href="#">5</a>
					<a href="#">6</a>
				</span>
				<a class="pagination-older" href="#">NEXT</a>
		</div>
</nav>
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Roboto:400,300)

body
	color #2c3e50
	font-family 'Roboto', sans-serif
	font-weight 400
		
h1
	text-align center
	font-size 2.5rem
	font-weight 300
		
.pagination-container
	margin 100px auto
	text-align center
        
.pagination
	position relative
	a
		position relative
		display inline-block
		color #2c3e50
		text-decoration none
		font-size 1.2rem
		padding 8px 16px 10px						
		&:before
			z-index -1
			position absolute
			height 100%
			width 100%
			content ""
			top 0
			left 0
			background-color #2c3e50
			border-radius 24px
			transform scale(0)					
			transition all 0.2s
		&:hover,
		.pagination-active
			color #fff
			&:before
				transform scale(1)            
	.pagination-active
		color #fff
		&:before
			transform scale(1)

.pagination-newer
	margin-right 50px
    
.pagination-older
	margin-left 50px
		
              
            
!

JS

              
                $('.pagination-inner a').on('click', function() {
		$(this).siblings().removeClass('pagination-active');
		$(this).addClass('pagination-active');
})
              
            
!
999px

Console