Join Pooja Jaisingh for an in-depth discussion in this video Creating a responsive drag-and-drop interaction, part of Captivate 9: Drag-and-Drop Interactions.
- In the last movie, we saw how to create a drag-and-drop interaction in a regular Captivate project. In this movie, let's see how we can create a drag-and-drop interaction for responsive projects. Responsive projects require special handling of objects in terms of size and position, to look best in all three layouts for desktop, tablet, and mobile. And that applies to the objects used in drag-and-drop interaction as well.
Let's create a new responsive project. On the Captivate welcome screen, on the New tab, double-click Responsive Project. This will create a responsive project for you with three different layouts for Primary, Tablet, and Mobile view. It's time to import the images now. First, let's import the background image. Let's switch to the Primary view and click Media, Image.
Navigate to the Images folder on the Chapter 1 folder, and open the Background Image.png. Let's switch to the different layouts by clicking on the icons on the top. Notice that the default setting shrinks the background image and only partially covers the slide in Tablet and Mobile views. Let's change the setting so that the image doesn't shrink, and we can partially use the background image in each view.
Let's go back to the Primary view, and with the image selected, let's go to the Properties inspector. On the Position inspector, change the Height of the image to percentage and Width to Auto. This will help you make sure the Height remains 100% and the Width is adjusted accordingly. Let's lock this image so that we don't accidentally edit or move this image. Right-click the image, and select Lock.
Now let's add the drag image from the same folder. Click Media, Image, and import the Drag.png image. Place the image on the bottom-left corner, and in the Position inspector, select percentage unit for Bottom so that the image sticks to the bottom-left corner. Now it's time to add the drop target image. Click Media, Image, and import the Drop.png image.
Place the image on the bottom-right corner, and on the Position inspector, select percentage unit for Bottom and Right so that the image will stick to the bottom-right corner. Now that we have the objects in place, let's create the interaction. Click Interactions, Drag and Drop. Let's move the Submit button out of the way. Select the draggable and click Next. Select the drop target and click Next.
Drag an arrow out of the draggable and place it on top of the drop target. Click Finish to confirm. You've successfully created a responsive drag-and-drop interaction. Let's preview it, click Preview, Project. I'm in Windows 8.1, so I'll go ahead and select Google Chrome as my browser. Notice how you can drag and drop objects in different layouts and even in between layouts in your responsive projects, enjoy!
- Creating your first drag-and-drop interaction
- Building a drag-and-drop question
- Categorizing draggables and drop targets
- Setting acceptance and rejection behaviors
- Assigning actions
- Providing feedback via captions and audio
- Setting interaction-level actions
- Defining the correct answers
- Advanced drag-and-drop interactions