Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


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


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.


Save Automatically?

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.


<div class="body">
	<div class="background-image toggle-image first-img show"></div>
	<div class="background-image toggle-image second-img"></div>
	<div class="background-image toggle-image third-img"></div>
	<div class="quote-block">
		<div class = "quoteMark"> "</div>
		<div class="quote">Eat raw potatoes.</div></br>
		<div class="author">-Thea</div></br>
		<button id ="getQuote" class="button">New Quote</button>
<button id="tweet-btn" class="button">Tweet It</button>
<div class="footer">
	<h4>@Thea </h4>


                @import url(,300,700);

/*body general styling*/
	font-family: Comfortaa, Helvetica, Times New Roman;
	color: #F7CAC9;

/*background image styling*/
.background-image {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

/*transition effect styling*/
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 800px;
	transition: opacity 5s ease-in-out;

/*Background images*/
/* Background image URLs and "stack" order. */
.first-img {
    background-image: url('');
    z-index: -3;
	opacity: 0;

.second-img {
    background-image: url('');
    z-index: -2;
	opacity: 0;

.third-img {
    background-image: url('');
    z-index: -1;
	opacity: 0;
} {
    opacity: 1;
} {
    opacity: 1;
} {
    opacity: 1;
/*Quote block styling*/
	background-color: rgba(255,255,255,0.5);
	margin: 5em 5em 0em 5em;
	padding: 30px 20px 30px 20px;
	border-radius: 20px;
	position: relative;
/*fancy quotation mark*/
	font-size: 100px;
	font-family:  Times New Roman;
	text-align: center;
	margin-bottom: -80px;
	text-shadow: 1px 1px 5px #000000;
/*Quote's style*/
	font-size: 40px;
	text-shadow: 1px 1px 5px #000000;
	text-align: center;
	position: relative;

/*author name's styling*/
	text-align: right;
	text-shadow: 1px 1px 1px #000000;
	font-size: 20px;
	padding-right: 30px;
	positon: relative;

/*buttons' styling*/
    background-color: #89ABE3; /* Green */
    border: none;
	color: white;
	padding: 5px 10px;
    text-align: right;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
	border-radius: 5px;
	position: inherit;	
/*about-me styling*/
	text-align: center;


                /*function for changing background*/
function changeBackgrounds() {
	var index = 0;

	$image = $('.toggle-image'); // Get the images to be cycled.

	setInterval(function() {
		// Get the next index.  If at end, restart to the beginning.
		index = index + 1 < $image.length ? index + 1 : 0;
		// Show the next image.
		// Hide the previous image.
		$image.eq(index - 1).removeClass('show');

	}, 5000);
var quoteAPI = '';

/*function to get random quotes*/
function getQuote(){
	$("#getQuote").on("click", function(){
		$.getJSON(quoteAPI, function(json) {

$(document).ready(function() {
	/*call function change back*/
	$('#tweet-btn').click(function() {'' + $('.quote').text() + " " + $('.author').text());