Custom eLearning and Digital Training Solutions Provider
  • Home
  • eLearning Services
    • Custom Elearning Solutions
    • Convert PowerPoint to eLearning
    • Rapid eLearning Development
    • Translation and Localization
    • Flash To HTML5 Conversion
    • Legacy Content Conversion
    • Mobile Learning
    • Gamified Learning Solutions
    • Blended Learning Solutions
  • Software Development
    • Learning Management System
    • Workforce Management System
    • Human Resource Management System
    • Bug Tracker Software
    • Custom Software Development
  • Contact Us
  • Blog
  • Search
  • Menu Menu
  • 0Shopping Cart
  • Home
  • eLearning Services
    • Custom Elearning Solutions
    • Convert PowerPoint to eLearning
    • Rapid eLearning Development
    • Translation and Localization
    • Flash To HTML5 Conversion
    • Legacy Content Conversion
    • Mobile Learning
    • Gamified Learning Solutions
    • Blended Learning Solutions
  • Software Development
    • Learning Management System
    • Workforce Management System
    • Human Resource Management System
    • Bug Tracker Software
    • Custom Software Development
  • Contact Us
  • Blog

How to Apply Multiple Text Colors in Articulate Storyline 360 Using JavaScript

Articulate Storyline 360 is one of the most popular tools for creating interactive eLearning content. While it’s built-in text formatting options are powerful, there are times when you need more customization, such as applying multiple colors to different words or phrases dynamically. With a little JavaScript, you can transform plain text into engaging, color-rich content that captures learners’ attention.

Click Preview to watch how to apply multiple text colors in Articulate Storyline 360 using JavaScript.

Preview

In this article, we will show you step by step how to apply multiple text colors in Storyline 360 using JavaScript, a simple solution to make your courses more visually appealing and interactive.

What is Articulate Storyline?

Articulate Storyline is one of the most popular eLearning authoring tools used to create interactive online courses, training modules and assessments. It’s widely used by instructional designers, educators and corporate trainers because it combines ease of use with powerful features.

Think of it like PowerPoint on steroids, you can design slides, add multimedia and then take it further with animations, triggers, branching scenarios and quizzes.

Key Features of Articulate Storyline

1. Slide-Based Authoring: Build courses just like creating slides in PowerPoint.
2. Triggers & States: Add interactivity with “if this, then that” logic.
3. Quizzes & Assessments: Create graded or ungraded quizzes with built-in templates.
4. Variables: Personalize learning by storing learner input or tracking progress.
5. Screen Recording: Record software simulations or step-by-step tutorials.
6. Responsive Player: Courses automatically adjust to desktop, tablet and mobile screens.
7. SCORM, xAPI and AICC Support: Publish courses that work in most LMS platforms.
8. JavaScript Integration: Extend functionality (like multicolored text, custom interactions, or dynamic data).

Want to level up your Storyline 360 skills?

Get FREE online training for Articulate Storyline 360 here: https://www.swiftelearningservices.com/articulate-storyline-360-free-tutorials/

Why Use JavaScript for Text Styling in Storyline?

Storyline’s built-in text editor lets you format content, but it doesn’t provide much flexibility for dynamically updating colors through triggers or user interaction. JavaScript offers:

✔ Dynamic styling: Change text colors based on user actions.
✔ Custom control: Highlight specific keywords, phrases, or learner responses.
✔ Enhanced interactivity: Make your slides stand out with unique designs.

Step-by-Step Guide: Applying Multiple Text Colors

Follow these steps to implement custom text color changes in Storyline 360.

1. Set-up Your Project

✔ Open your project in Articulate Storyline 360.
✔ On your desired slide, add a shape that will serve as a button.
✔ Style and position it to fit your design.
✔ Rename it – for example, “Change Font Color”.

2. Create a JavaScript Trigger

✔ Open the Triggers panel.
✔ Add a new trigger:

  • Action: Execute JavaScript
  • When: User clicks
  • Object: Change Font Color button

This ensures your JavaScript code runs whenever the learner clicks the button.

3. Add the JavaScript Code

Now it’s time to write the script. Open the JavaScript editor and paste this example code:

const parent = document.querySelector(‘[data-acc-text=”text2Change”]’);
gsap.to(parent, {duration:0.7,scale:1.5,transformOrigin:”top left”});
Array.from(parent.children).forEach((child, index) => {
const txtSpan = child.querySelectorAll(‘tspan’);
for (let i = 0; i < txtSpan.length ; i++) {
txtSpan[i].style.fill = generateRandomColor();
}
});
function generateRandomColor(){
let maxVal = 0xFFFFFF; // 16777215
let randomNumber = Math.random() * maxVal;
randomNumber = Math.floor(randomNumber);
randomNumber = randomNumber.toString(16);
let randColor = randomNumber.padStart(6, 0);
return `#${randColor.toUpperCase()}`
}

4. Preview Your Slide

✔ Preview the slide.
✔ Click the Change Font Color button.
✔ You’ll see your text update with multiple colors instantly.

Best Practices for Multicolors Text in Storyline

1. Keep readability in mind: Too many colors can overwhelm learners.
2. Use contrast wisely: Ensure text is accessible against the background.
3. Highlight important words: Apply colors to emphasize key learning points.
4. Test across devices: Make sure styling works well on both desktop and mobile.

Looking for a Learning Management System (LMS) Solution?

We offer Learning Management System (LMS) solutions tailored to your organization’s unique training, compliance, and performance management goals.

Whether you’re a corporate organization, educational institution, or non-profit, we’re here to help you deliver engaging, scalable, and measurable learning experiences.

Click on the Sign Up button to Sign Up and get instant access to our LMS — absolutely FREE!

Sign Up

Summary

Applying multiple text colors in Articulate Storyline 360 using JavaScript is a simple yet powerful way to enhance your eLearning projects. With just a few lines of code, you can draw attention to critical words, create engaging visual effects and make your learning content more interactive.

By combining Storyline’s flexibility with JavaScript customization, you’ll have the tools to create standout learning experiences that captivate your audience.

Frequently Asked Questions (FAQs)

Q1. Why should I use JavaScript to change text colors in Storyline 360?
A. JavaScript offers more flexibility than the built-in text editor, enabling dynamic styling, interactive highlights and brand-specific color customization.

Q2. Where do I add the JavaScript code in Articulate Storyline 360?
A. The code is added via a trigger, usually on a button click – using the Execute JavaScript action in the Triggers panel.

Q3. What is the difference between Articulate Storyline and Articulate Rise?
A. Storyline is a slide-based authoring tool that gives you complete design flexibility and customization. Rise is template-based and responsive-first, making it faster for simple courses but with fewer customization options.

Q4. Can I use Articulate Storyline without coding?
A. Yes. Most Storyline features like quizzes, triggers and animations work without coding. However, developers can extend functionality with JavaScript for advanced customization.

Q5. What is the difference between Articulate Storyline and Articulate Rise?
A. Storyline is a slide-based authoring tool that gives you complete design flexibility and customization. Rise is template-based and responsive-first, making it faster for simple courses but with fewer customization options.

Q6. What is Articulate Storyline used for?
A. Articulate Storyline is used to create interactive eLearning courses, training modules, quizzes and software simulations. It helps trainers and instructional designers deliver engaging online learning experiences.

Our Articulate Storyline 360 courses are engaging, visually rich, and compatible with SCORM/xAPI for easy LMS deployment.
https://www.swiftelearningservices.com/articulate-storyline-360-free-tutorials/

ARTICULATE STORYLINE POSTS

  • step-by-step guide to customize quiz feedback colors in rise 360
    How to Customize Correct and Incorrect Answers Feedback Colors in Articulate Rise 360June 27, 2025 - 4:40 PM
  • removing labels and numbers from process blocks in articulate rise 360
    How to Remove Labels and Numbers from Process Blocks in Articulate Rise 360June 20, 2025 - 3:07 PM
  • easy-online-course-creation-ispring-suite-swift-elearning-services
    Create Online Courses with Ease Using iSpring Suite – The All-in-One eLearning Authoring Tool for PowerPointJune 16, 2025 - 11:18 AM
  • how to adjust padding in articulate rise 360 content blocks for custom e-learning
    How to Adjust Padding in Articulate Rise 360 Content Blocks for Custom E-LearningJune 9, 2025 - 5:23 PM
  • swift elearning services focuses on crafting custom elearning courses that enhance digital learning experiences.
    How to Use Snapshots to Recover Deleted Lessons in Articulate Rise 360April 23, 2025 - 3:58 PM
  • swift elearning services provides articulate 360 localization, offering tailored elearning solutions that adapt your content for global audiences.
    Articulate 360 Localization: Create, Translate, and Manage Training with EaseApril 17, 2025 - 11:24 AM
  • custom elearning solution with jump-to-time video control in storyline 360 for interactive video navigation.
    How to Use Jump-to-Time Trigger to Control Video in Storyline 360April 11, 2025 - 10:51 AM
  • how to import slides from other storyline projects
    Articulate Storyline 360 – How to Import Slides from Other Storyline ProjectsMarch 25, 2025 - 5:52 PM
  • ohs-traffic-control-training-for-construction-workers-featured-image
    OHS – Traffic Control Training Course for Construction WorkersSeptember 9, 2024 - 5:56 PM
  • ohs-road-traffic-control-training-for-road-maintenance-workers-featured-image
    OHS – Traffic Control Work Zone Safety Training for Road Maintenance WorkersAugust 1, 2024 - 3:22 PM

Get a Free Prototype Customized with Your Content.

Our Portfolios Explore Our Extensive Collection of eLearning Courses.

GET A FREE ELEARNING SAMPLE

We transform your training material into engaging, SCORM-compliant courses.

Request a Free Sample  

Our Services


  • Rapid eLearning Solutions

  • Custom eLearning Development

  • Flash to HTML5 Conversion Services

  • Mobile Learning Solutions

  • Translation and Localisation Services

  • Gamification eLearning

Our Office Address

Asia: 704, Topaz Plaza, Punjagutta, Hyderabad, Telangana, India 500082

Australia: P.O. Box 107, Brisbane, Queensland, 4030

Canada: 750 Oakdale Rd Suite 56, North York, ON M3N 2Z4, Canada

USA: 12218 Old Gage Ranch, San Antonio, Texas 78245

Copyright ©2026 Swift eLearning Services.
  • Facebook
  • Twitter
  • LinkedIn
  • Youtube
Catch the Falling Balls Mini-Game | Rise 360 Code Block (Beta) Featureai-in-e-learningAI in E-Learning – Innovation Meets Instructional Design
Scroll to top