Skip to content

Tutorials

  • Cryptocurrency
  • CSS
  • Excel
  • HTML
  • Javascript
  • Node.js
  • Others
  • SCSS
  • Web Development

Pages

  • Home
  • All Tutorials
  • About
  • Privacy Policy

Red Stapler

Coding Tutorials and Development Tips

  • Home
  • Tutorials
  • About

Tag: javascript

adding-css-to-iframe
CSS Javascript Web Development

How to Apply CSS to iFrame

December 28, 2020 Red Stapler 2

iFrame is a very convenient way to display an external content on your webpage. However, it’s little bit complicate if you want to add additional or alter the existing CSS style. You cannot simply add….

Read more
difference-between-strings
Javascript

Find Diff between 2 Strings with JavaScript

December 28, 2020 Red Stapler 0

Levenshtein Algorithm is a well-known method to find differences between 2 arbitrary strings. However, if the given strings have equal length, the process is very much simpler by comparing characters on the same position and….

Read more
javascript add animation property
CSS Javascript

How to Add CSS Animation with JavaScript

December 28, 2020 Red Stapler 0

A JavaScript snippet to dynamically add shorthand CSS animation property to any element. Useful method to insert an animation on a certain scenario. The syntax used in JavaScript code is similar with one in CSS…..

Read more
javascript button state
CSS

Toggle Active Button State with JavaScript

December 28, 2020 Red Stapler 0

JavaScript code snippet to add “active” class to any button or div to toggle an active state. Useful for changing styles and appearance of clicked button. The snippet below will add click event listener to….

Read more
javascript-weighted-random
Javascript

Perform Weighted Random with JavaScript

December 28, 2020 Red Stapler 0

Weighted random is a non-uniform random method that each values has specific probability to be picked. The values with higher weight are more likely to be the random result while lower weighted one are less….

Read more
javascript-deep-clone-object
Javascript

How to Deep Clone JavaScript Object

December 28, 2020 Red Stapler 0

Deep Cloning JavaScript object can be very simple or difficult depend on how complicate your object structure is. For an object with basic data types, a one liner code is all you need. But if….

Read more
javascript-random-number-range
Javascript

Random Number between Range in JavaScript

December 28, 2020 Red Stapler 0

Math.random() is a function that returns a pseudo-random floating numbers between 0 and 1 (0 is inclusive, 1 is exclusive) We usually multiply the result with other numbers to scale the randomized value. However, there….

Read more
3d-world-skybox-javascript
HTML Javascript

Create 3D World with Three.js and Skybox Technique

December 28, 2020 Red Stapler 3

In this post, we’re still with Three.js. I’m going to show you how to create an easy 3D world with skybox technique in just a few minutes. Let’s check it out! What is Skybox The….

Read more
three-js-realistic-rain-effect
Javascript Web Development

Three.js Realistic Rain Effect Tutorial

December 28, 2020 Red Stapler 0

In previous post, we made a tutorial how to make Thanos portal effect using Three.js. This time we’ll show you how to use the same technique to turn it into a realistic raining scene in….

Read more
thanos-snap-effect-tutorial
HTML Javascript Web Development

Thanos Snap Effect JavaScript Tutorial

December 28, 2020 Red Stapler 16

Thanos’ snap effect is one of the best Easter egg from Google that I really like. But since Google obfuscate their code, it’s a little bit hard to see the technique they used. So in….

Read more
split-js-tutorial
CSS HTML Javascript

Split.js Tutorial – Create Split Screen Effect on your Website

December 28, 2020 Red Stapler 1

Today we’re going to talk about split.js. An awesome JavaScript that can help you create split screen effect on your webpage or any HTML element and create a resizable partition in just a few minutes…..

Read more
7-trending-javascript-libraries
Javascript

7 Trending JavaScript libraries in 2019

December 28, 2020 Red Stapler 0

It’s new year and it’s the time to review the interesting JavaScript libraries. In this post, we have the 7 trending JavaScript libraries in 2019 that might be useful for your project and boost up….

Read more

Posts pagination

«Previous Posts 1 2 3 4 5 Next Posts»
©2025 Red Stapler. All rights reserved.
  • Facebook
  • Twitter
  • Youtube