Programming object oriented interfaces and animations in JavaScript 

   
  1.0   1.0
  1.0   1.0
00:00:00

Move the pointer of the mouse over the video. Click in the video or press the space bar to start playing it. Click or press the space bar to pause it, to continue to play it. Use the right and left arrows to move forward or backward by one second, press the Shift key or the Ctrl key at the same time to move forward or backward by ten seconds or a hundred milliseconds. Press the 0 key to come back to the beginning. Press the plus key to play the video faster, the minus key to play it slower, the asterisk key to come back to the normal speed. NOTE: These commands are available for all types of clips.

Activate the sound.

IMPORTANT: The layout and the style of an interface are in the hands of the programmer. No graphical design is imposed. The examples use the icons from Font Awesome.

Modify the width or the height of the video in pixels. NOTE: The editor preserves the aspect ratio of the display and adjusts the other dimension automatically. Invert the display horizontally or vertically. Try a grayscale or a sepia effect. Blur the display. Modify the contrast, the brightness, the saturation, the tint of the video.

Try the Undo and Redo buttons.

Reload the page. The modifications are saved.

VideoClip

Click in the text to start the animation. Click again to pause it, to continue to play it.

ProgramClip

 
 
 
 0    

Type in a couple of words, e.g. Paris • London • . Press Enter to validate the text. NOTE: The text is always displayed in capital letters. Modify the size of the font. Check the box to show the text in bold. Change the font of the text by entering the name of a font from Google Fonts, e.g. Slackey or Righteous. Choose the color of the text, e.g. #CB6. Adjust the dimensions of the clip. Change the numbers of seconds of the duration of the animation and the start delay. Try different animation effects, e.g. linear ou ease-in-out. NOTE: The animation runs two times alternating the direction of the rotation. The total duration of the clip is equal to 2 times the duration of the animation + the start delay.

Click on the emblem to start the animation. Click again to pause it, to continue to play it.

REMINDER: The commands from the keyboard are effective for all types of clips. Move the pointer of the mouse over the emblem. Press the plus key to play the animation faster, the minus key to play it slower, the asterisk key to come back to the normal speed.

AnimateClip

A clip can always be converted into a video.

Click in a video to start it. Click again to pause it.

Click in the image to start the animation. Click again to stop it. Move the pointer of the mouse over the image and press the space bar. Drag the clip within the <div> which contains it with the mouse or with a finger on a touch screen. Move the clip close to the right side of the <div>. Try resizing it.

Draggable

00:00:00

Press the play button to start playing the audio. Press the pause button to pause it. Turn on or off playing the audio in a loop. The player moves automatically to the next track if playing in a loop is turned off. Click on the name of a track in the list to load it in the player.

An audio player can also load an audio file from the local disk, record an audio with a microphone, send a loaded or a recorded audio file to a server, delete an audio file from a server. All functionalities are optional.

AudioPlayer

   

Click in the image. Select a JPG, PNG, GIF or SVG file. NOTE: The maximum size of the file is configured to 1 MB and the maximum width of the display to 320 px. Move the pointer of the mouse over the image to display its dimensions. Open a folder containing images with the explorer of your file system. Drag and drop a JPG, PNG, GIF or SVG file over the image.

Edit the width or the height of the image. The other value is automatically computed to preserve the aspect ratio of the image.

Try saving on your disk and loading the logo of Chrome, of Firefox or the acronym in SVG. NOTE: An SVG doesn't have a maximum size and its dimensions depend on the maximum width of the display (320 px).

Write data on a server

 X  Y

Change the title of the chart to Plotly & Objective.js. Check the option to display the legend of the chart.

Use the selector to edit the data and the color of a series of bars. Press the arrows   to move the selected series of bars to the left or to the right.

Click on the reset button to reinitialize the chart.

Reload the page. The modifications are saved.

Configure charts by Plotly

The set of classes of Objective.js:

Installation
Donwload and install the library, the test programs and all the examples in your development environment.
Programmer's manual
Read the complete documentation on all the classes of Objective.js and their test programs.
Architecture of an editor
Study the organization of the code of an editor which coordinates the exchanges between a data model, inspectors which edit the values of the model, a view which displays the state of the model in real time and a delegate in charge of automatically saving the data of the model.
Editing an animated text
Learn how to obtain from an animation programmed in CSS the equivalent effect in a clip and how editing the clip parameters is coded.
Editing a text animated by a program
Learn how to obtain from an animation programmed in JavaScript the equivalent effect in a clip and how editing the clip parameters is coded.
Editing a video filtered by a canvas
Learn how to obtain from a video filtered with a canvas the equivalent effect in a clip and how editing the clip parameters is coded.
Write data on a server
Build an editor which lets the user load or drag and drop an image from the local disk, define its dimensions and upload the image and its dimensions to a remote server.
Manage a user file space with a protected access
Manage a deposit of JPG, PNG or GIF images and PDF documents shown as a wall of thumbnails.
Configure charts by Plotly
Edit the data and the configuration parameters of a line chart and a bar chart made with the library provided by Plotly and see the result.

  • Build sophisticated interactive applications.
  • Rely on a simple and solid MVC architecture.
  • Work with your usual development tools.
  • Use your own graphical designs.